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

Commit bf94572

Browse files
Trottaddaleax
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 9efd328 commit bf94572

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)