test: fix use of `common` before required
authorRod Vagg <rod@vagg.org>
Fri, 4 Sep 2015 02:25:31 +0000 (12:25 +1000)
committerRod Vagg <rod@vagg.org>
Sun, 6 Sep 2015 11:39:06 +0000 (21:39 +1000)
PR-URL: https://github.com/nodejs/node/pull/2685
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
test/pummel/test-keep-alive.js

index d396042..c2ec7fd 100644 (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, {