From e483f3fd26a54a1e0a10c6377ff68764c3e50b19 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 1 Mar 2016 20:12:52 +0100 Subject: [PATCH] test: fix hanging http obstext test Set the Connection header to 'close' to work around a v0.10 quirk. Prevents the test from timing out due to a still open TCP connection. Test introduced in 1e45a61 ("deps: update http-parser to version 1.2"). PR-URL: https://github.com/nodejs/node/pull/5511 Reviewed-By: James M Snell --- test/simple/test-http-header-obstext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple/test-http-header-obstext.js b/test/simple/test-http-header-obstext.js index cd50b20bf76582..72ffdfcf0e084f 100644 --- a/test/simple/test-http-header-obstext.js +++ b/test/simple/test-http-header-obstext.js @@ -8,9 +8,9 @@ var server = http.createServer(common.mustCall(function(req, res) { server.listen(common.PORT, function() { http.get({ port: common.PORT, - headers: {'Test': 'Düsseldorf'} + headers: {'Connection': 'close', 'Test': 'Düsseldorf'} }, common.mustCall(function(res) { assert.equal(res.statusCode, 200); server.close(); })); -}); \ No newline at end of file +});