Commit 644bb5d
committed
test: fix flaky TestAddModuleWorkerViaAdminApi
The test POSTs a full config to the admin /load endpoint, which swaps
the HTTP listener for the new config, then immediately GETs the newly
added worker. A request racing that swap can hit a reset connection
(EOF) before the worker ever sees it, as seen on CI
(#2604 CI run, and previously on #2412/#2381 per #2413
for the sibling autoscale tests).
Retry only on connection-level errors, not on the request itself: once
a request reaches the worker it always increments its counter, so
retrying past that point would break the "requests:1" assertion.1 parent 6845134 commit 644bb5d
1 file changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
348 | | - | |
349 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
350 | 369 | | |
0 commit comments