From fbe9de31301d3246c4a58efc9082c56df0b69a63 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Fri, 4 Sep 2015 12:25:31 +1000 Subject: [PATCH] test: fix use of `common` before required --- test/pummel/test-keep-alive.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/pummel/test-keep-alive.js b/test/pummel/test-keep-alive.js index d396042fde8aaa..c2ec7fd81f1691 100644 --- a/test/pummel/test-keep-alive.js +++ b/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, {