Commit a357055
committed
fix: increase Cosmos DB test timeouts to eliminate flakes
Cosmos DB has a variable delay between accepting a write and making it
visible on the change stream cursor (internal propagation, not network
latency). Against the remote dev cluster this can take 10-30s during
spikes, though in a co-located deployment it would be much faster.
Previous timeouts (25s poll, 60s test) were insufficient — the lte guard
and resume tests flaked at ~20-30% rate. Increased to 50s poll deadline
and 120s test timeout. 5 consecutive runs with 0 flakes (29/29 each).
maxAwaitTime (when supported) would reduce polling overhead but would
not help with propagation delay — the event is simply not available yet.
The generous timeouts are appropriate for prototype-quality tests run
manually against a remote cluster, not for CI.1 parent c04541a commit a357055
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 227 | + | |
| 228 | + | |
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
| |||
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
310 | | - | |
311 | | - | |
| 309 | + | |
| 310 | + | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
| |||
0 commit comments