Commit a84d50c
committed
fix(mongo): make client reconnect test more robust
The test was flaky because await sleep(0) doesn't always give enough
time for TCP close events to propagate through the event loop,
especially under CPU contention when multiple CI runners execute
jobs in parallel.
Now waits up to 1 second for the connection to actually close.1 parent 22483a2 commit a84d50c
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
0 commit comments