test: fix flaky test-net-socket-timeout · nodejs/node@53e8e96 · GitHub
Skip to content

Commit 53e8e96

Browse files
TrottFishrock123
authored andcommitted
test: fix flaky test-net-socket-timeout
The setTimeout() call is unneeded. If the socket never times out, then the test will never finish. Because timers can be unreliable on machines under load, using setTimeout() here effectively creates a race condition. PR-URL: #10172 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent 20fdf3a commit 53e8e96

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

Lines changed: 14 additions & 15 deletions

0 commit comments

Comments
 (0)