Permalink
Browse files

test: fix use of `common` before required

PR-URL: #2685
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information...
rvagg committed Sep 4, 2015
1 parent 5424d6f commit 384effed20b9fc1b558412525ecd77f86092bae3
Showing with 5 additions and 4 deletions.
  1. +5 −4 test/pummel/test-keep-alive.js
@@ -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, {

0 comments on commit 384effe

Please sign in to comment.