Repository navigation
Commit 37af94b
authored
test(gpui): wait for the removed agent's turn to end in the clean test (#43)
a_failed_idle_terminal_clean_neither_ends_the_shared_server_nor_blocks_
the_agents_return removed the second agent as soon as its reply was
published. The turn publishes before it ends, so the removal could land
while the turn was still finishing. The agent then aborted the turn
rather than stopping, and the aborted turn's failed terminal clean
closed the shared server by design, failing the ended == 0 assertion.
It failed in about 1 in 30 local runs and more often in CI.
Wait for the agent to report Idle before failing the clean and removing
it, as does_not_clean_after_the_last_agent_closes_the_server does, so the
test exercises the stop path it is named for.
Signed-off-by: Tee8z <[email protected]>1 parent 31554c4 commit 37af94b
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2042 | 2042 | | |
2043 | 2043 | | |
2044 | 2044 | | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
2045 | 2055 | | |
2046 | 2056 | | |
2047 | 2057 | | |
| |||
0 commit comments