test: fix flaky test-net-can-reset-timeout · nodejs/node@1e40390 · GitHub
Skip to content

Commit 1e40390

Browse files
TrottMylesBorins
authored andcommitted
test: fix flaky test-net-can-reset-timeout
Use `.once()` rather than `.on()` for timeout listener. Add comment with URL for issue explaining the purpose of the test. (h/t refack) PR-URL: #14257 Fixes: #14241 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
1 parent 95be08e commit 1e40390

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/parallel/test-net-can-reset-timeout.js

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)