Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
squash! increase timeouts to fix test flakiness
  • Loading branch information
aqrln committed Jun 13, 2017
commit 834def6ceead337be0a3e26437fce6b8cf371bba
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const server = http.createServer(common.mustCall((req, res) => {
res.end();
}, 2));

server.keepAliveTimeout = 100;
server.keepAliveTimeout = common.platformTimeout(100);

server.listen(0, common.mustCall(() => {
const port = server.address().port;
Expand Down Expand Up @@ -38,7 +38,7 @@ server.listen(0, common.mustCall(() => {
setTimeout(() => {
socket.write('Connection: keep-alive\r\n' +
'\r\n');
}, 200);
}, common.platformTimeout(300));

function onData(chunk) {
response += chunk;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const server = http.createServer(common.mustCall((req, res) => {
}
setTimeout(() => {
res.end('ok');
}, 200);
}, common.platformTimeout(500));
}, 2));

server.keepAliveTimeout = 100;
server.keepAliveTimeout = common.platformTimeout(200);

const agent = new http.Agent({
keepAlive: true,
Expand Down