test: fix race in test-net-server-pause-on-connect · nodejs/node@e22cc6c · GitHub
Skip to content

Commit e22cc6c

Browse files
Trottjasnell
authored andcommitted
test: fix race in test-net-server-pause-on-connect
A 50ms timeout results in a race condition. Instead, enforce expected order through callbacks. This has the side effect of speeding up the test in most situations. Ref: #4476 PR-URL: #4637 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d139704 commit e22cc6c

1 file changed

Lines changed: 26 additions & 27 deletions

File tree

Lines changed: 26 additions & 27 deletions

0 commit comments

Comments
 (0)