Skip to content

Fix race in FlowFromPublisherDiscardTest - #566

Merged
adamw merged 1 commit into
masterfrom
fix-discard-test-race
Nov 30, 2026
Merged

adamw merged 1 commit into
masterfrom
fix-discard-test-race

Conversation

@adamw

@adamw adamw commented Nov 30, 2026

Copy link
Copy Markdown
Member

Fixes a flaky test that failed on master: https://github.com/softwaremill/ox/actions/runs/46500520775

If the flow failed before element 3 was sent, onDiscard(3) ran on the test thread (as the publisher) and threw there. The consumer now waits until all elements are sent.

@adamw
adamw merged commit b37ebf4 into master Nov 30, 2026
6 checks passed
@adamw
adamw deleted the fix-discard-test-race branch November 30, 2026 20:34
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