test: fix use of `common` before required

PR-URL: https://github.com/nodejs/node/pull/2685
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
Rod Vagg 2015-09-04 12:25:31 +10:00
parent 4e3d767f4c
commit 30e76c59cd
1 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,4 @@
'use strict';
if (common.isWindows) {
console.log('1..0 # Skipped: no `wrk` on windows');
return;
}
// This test requires the program 'wrk'
var common = require('../common');
@ -12,6 +8,11 @@ var http = require('http');
var path = require('path');
var url = require('url');
if (common.isWindows) {
console.log('1..0 # Skipped: no `wrk` on windows');
return;
}
var body = 'hello world\n';
var server = http.createServer(function(req, res) {
res.writeHead(200, {