Commit 5700896
committed
test: fix flaky e2e assertions in standalone mode
In APISIX standalone mode, config application via /apisix/admin/configs
is async (returns 202). Two tests asserted HTTP status immediately after
config push without retry, causing intermittent 404s:
- Basic test: direct assertion on /headers after route update
- WebSocket test: direct dial assertion after route creation
Replace direct assertions with Eventually retry (20s timeout, 1s interval)
to match the pattern used elsewhere in the test suite.1 parent b1af3da commit 5700896
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
1448 | 1448 | | |
1449 | 1449 | | |
1450 | 1450 | | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
1454 | 1459 | | |
1455 | 1460 | | |
1456 | 1461 | | |
| |||
0 commit comments