Skip to content

Commit 24af7ca

Browse files
committed
test: increate test-net-nodejsGH-5504 timeout
test-net-nodejsGH-5504 failed on smartos14-64 in CI. The internal test timeout expired. It is currently 2 seconds. That appears to be somewhat arbitrary. It may be possible to rewrite the test without the timer. As an immediate workaround, increase the timeout to 5 seconds.
1 parent 7537718 commit 24af7ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/sequential/test-net-GH-5504.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
'use strict';
22
var common = require('../common');
33

4-
// this test only fails with CentOS 6.3 using kernel version 2.6.32
4+
// https://github.com/nodejs/node-v0.x-archive/issues/5504
5+
//
6+
// This test only fails with CentOS 6.3 using kernel version 2.6.32
57
// On other linuxes and darwin, the `read` call gets an ECONNRESET in
68
// that case. On sunos, the `write` call fails with EPIPE.
79
//
@@ -54,7 +56,7 @@ function parent() {
5456
setTimeout(function() {
5557
throw new Error('hang');
5658
});
57-
}, common.platformTimeout(2000)).unref();
59+
}, common.platformTimeout(5000)).unref();
5860

5961
var s = spawn(node, [__filename, 'server'], {
6062
env: Object.assign(process.env, {

0 commit comments

Comments
 (0)