Skip to content

Commit

Permalink
squash! increase timeouts to fix test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Jun 13, 2017
1 parent e4f645b commit 834def6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 834def6

Please sign in to comment.