Skip to content
Closed
Changes from all commits
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
test: fix flaky test-net-timeout
The check for an 800ms window makesw assumptions about a setTimeout()
not running late etc. Remove it.

Refs: #34289
  • Loading branch information
Trott committed Apr 3, 2021
commit a66fdc18eb2f16e1c20e7bf69e45d19edf817d5c
4 changes: 0 additions & 4 deletions test/pummel/test-net-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const echo_server = net.createServer((socket) => {
});

socket.on('data', (d) => {
console.log(d);
socket.write(d);
});

Expand Down Expand Up @@ -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);
});