Skip to content

Commit c24d591

Browse files
author
David Frank
committed
fix test server for node 8, which changes keepalive connection handling
1 parent a2b032c commit c24d591

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ export default class TestServer {
1010
this.server = http.createServer(this.router);
1111
this.port = 30001;
1212
this.hostname = 'localhost';
13+
// node 8 default keepalive timeout is 5000ms
14+
// make it shorter here as we want to close server quickly at the end of tests
15+
this.server.keepAliveTimeout = 1000;
1316
this.server.on('error', function(err) {
1417
console.log(err.stack);
1518
});

0 commit comments

Comments
 (0)