mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: fix flaky test-net-timeout
The check for an 800ms window makesw assumptions about a setTimeout() not running late etc. Remove it. Refs: https://github.com/nodejs/node/pull/34289 PR-URL: https://github.com/nodejs/node/pull/38060 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
a0492ba391
commit
8b05e32519
@ -45,7 +45,6 @@ const echo_server = net.createServer((socket) => {
|
||||
});
|
||||
|
||||
socket.on('data', (d) => {
|
||||
console.log(d);
|
||||
socket.write(d);
|
||||
});
|
||||
|
||||
@ -105,7 +104,4 @@ process.on('exit', () => {
|
||||
console.log(`diff = ${diff}`);
|
||||
|
||||
assert.ok(timeout < diff);
|
||||
|
||||
// Allow for 800 milliseconds more
|
||||
assert.ok(diff < timeout + 800);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user