Commit 9283aca
committed
fix(test): use ServerSocket bind to check port availability
The previous check used client-side Socket.connect(), which cannot
detect ports in TCP TIME_WAIT state. This caused flaky test failures
when gRPC server bind failed on seemingly available ports.1 parent 7f71ab1 commit 9283aca
1 file changed
Lines changed: 4 additions & 6 deletions
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 346 | + | |
| 347 | + | |
351 | 348 | | |
| 349 | + | |
| 350 | + | |
352 | 351 | | |
353 | | - | |
354 | 352 | | |
355 | 353 | | |
0 commit comments