You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix race condition in FlowPrefixAndTailSpec double materialization test (#7816)
The test `PrefixAndTail_must_throw_if_tail_is_attempted_to_be_materialized_twice`
was failing intermittently with "Expected OnError but received OnNext(2)".
Root cause: Even after PR #7796 fixed the atomic detection of double
materialization, there was still a timing race between error detection
and demand signaling from ExpectSubscriptionAndError().
Fix: Disable demand signaling in the second subscriber's error expectation
by using `ExpectSubscriptionAndError(signalDemand: false)`. This eliminates
the race window while preserving the test's intent to verify error handling.
The test now passes consistently without requiring changes to production code.
0 commit comments