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';
|
'use strict';
|
||||||
if (common.isWindows) {
|
|
||||||
console.log('1..0 # Skipped: no `wrk` on windows');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This test requires the program 'wrk'
|
// This test requires the program 'wrk'
|
||||||
var common = require('../common');
|
var common = require('../common');
|
||||||
@ -12,6 +8,11 @@ var http = require('http');
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var url = require('url');
|
var url = require('url');
|
||||||
|
|
||||||
|
if (common.isWindows) {
|
||||||
|
console.log('1..0 # Skipped: no `wrk` on windows');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var body = 'hello world\n';
|
var body = 'hello world\n';
|
||||||
var server = http.createServer(function(req, res) {
|
var server = http.createServer(function(req, res) {
|
||||||
res.writeHead(200, {
|
res.writeHead(200, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user