test: fix flaky test-https-set-timeout-server · nodejs/node@de84249 · GitHub
Skip to content

Commit de84249

Browse files
Trottaddaleax
authored andcommitted
test: fix flaky test-https-set-timeout-server
Because of a race condition, connection listener may not be invoked if test is run under load. Remove `common.mustCall()` wrapper from the listener. Move the test to `parallel` because it now works under load. Make similar change to http test to keep them in synch even though it is much harder to trigger the race in http. PR-URL: #14134 Fixes: #14133 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent e879a56 commit de84249

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

test/parallel/test-http-set-timeout-server.js

Lines changed: 4 additions & 3 deletions

test/sequential/test-https-set-timeout-server.js renamed to test/parallel/test-https-set-timeout-server.js

Lines changed: 4 additions & 3 deletions

0 commit comments

Comments
 (0)