Skip to content

test(engine): de-flake bg pool Stop assertion in CI - #167

Merged
Patel230 merged 1 commit into
mainfrom
fix/flaky-bg-pool-test
Aug 2, 2026
Merged

test(engine): de-flake bg pool Stop assertion in CI#167
Patel230 merged 1 commit into
mainfrom
fix/flaky-bg-pool-test

Conversation

@Patel230

@Patel230 Patel230 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Fixes the flaky TestBackgroundAgentPool_StopCancelsInFlight that failed on the main push after #165. The registry only drains a task once its spawn fn returns, but the test asserted PendingCount()==0 immediately after observing cancellation. Now polls until both conditions hold. Verified with go test -race -count=10.

@Patel230
Patel230 merged commit eeed4be into main Aug 2, 2026
23 checks passed
@Patel230
Patel230 deleted the fix/flaky-bg-pool-test branch August 2, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant