mirror of https://github.com/nodejs/node.git
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:
parent
4e3d767f4c
commit
30e76c59cd
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue