Skip to content

Commit 834def6

Browse files
committed
squash! increase timeouts to fix test flakiness
1 parent e4f645b commit 834def6

2 files changed

+4
-4
lines changed

test/parallel/test-http-server-keep-alive-timeout-slow-client-headers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const server = http.createServer(common.mustCall((req, res) => {
99
res.end();
1010
}, 2));
1111

12-
server.keepAliveTimeout = 100;
12+
server.keepAliveTimeout = common.platformTimeout(100);
1313

1414
server.listen(0, common.mustCall(() => {
1515
const port = server.address().port;
@@ -38,7 +38,7 @@ server.listen(0, common.mustCall(() => {
3838
setTimeout(() => {
3939
socket.write('Connection: keep-alive\r\n' +
4040
'\r\n');
41-
}, 200);
41+
}, common.platformTimeout(300));
4242

4343
function onData(chunk) {
4444
response += chunk;

test/parallel/test-http-server-keep-alive-timeout-slow-server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ const server = http.createServer(common.mustCall((req, res) => {
1111
}
1212
setTimeout(() => {
1313
res.end('ok');
14-
}, 200);
14+
}, common.platformTimeout(500));
1515
}, 2));
1616

17-
server.keepAliveTimeout = 100;
17+
server.keepAliveTimeout = common.platformTimeout(200);
1818

1919
const agent = new http.Agent({
2020
keepAlive: true,

0 commit comments

Comments
 (0)