Commit 48ce9dc
authored
test: fix flaky timing in test_cancel_terminated_invocation (#619)
Replace the fixed 150ms sleep with a deadline-bounded poll loop. On
slower CI runners (e.g., Python 3.11 on GitHub Actions) the executor
had not yet posted done.invoke.loading when the assertion ran, leaving
the configuration in 'loading' instead of 'ready'.
The new loop drives the processing loop in 20ms ticks until the final
state is reached, with a 2s ceiling.
Signed-off-by: Fernando Macedo <fgmacedo@gmail.com>1 parent 847f1d5 commit 48ce9dc
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
619 | 621 | | |
620 | 622 | | |
621 | 623 | | |
| |||
0 commit comments