Skip to content

Commit e483f3f

Browse files
committed
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: #5511 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 42ded2a commit e483f3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/simple/test-http-header-obstext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ var server = http.createServer(common.mustCall(function(req, res) {
88
server.listen(common.PORT, function() {
99
http.get({
1010
port: common.PORT,
11-
headers: {'Test': 'Düsseldorf'}
11+
headers: {'Connection': 'close', 'Test': 'Düsseldorf'}
1212
}, common.mustCall(function(res) {
1313
assert.equal(res.statusCode, 200);
1414
server.close();
1515
}));
16-
});
16+
});

0 commit comments

Comments
 (0)