Commit d5cf011
committed
fix(apps-proxy): eliminate port race in TestKaiPreviewSlidingRefresh
Replace GetFreePort()+Listen() with a direct Listen("127.0.0.1:0") so
the OS assigns a free port atomically, removing the TOCTOU window where
a parallel test could steal the port between the two calls.1 parent b9b7301 commit d5cf011
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3219 | 3219 | | |
3220 | 3220 | | |
3221 | 3221 | | |
3222 | | - | |
3223 | | - | |
| 3222 | + | |
| 3223 | + | |
3224 | 3224 | | |
3225 | | - | |
| 3225 | + | |
3226 | 3226 | | |
3227 | 3227 | | |
3228 | 3228 | | |
| |||
0 commit comments