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
Replace third test to cover flush-specific behavior
Old test was misleading - it toggled isReady but buffering was triggered
by readyAndDrained=false (from first write), not isReady state.
New test 'flush_isReadyTrue_goesDirect_isReadyFalse_buffers' tests the
flush path in runOrBuffer():
- Flush with isReady=true: goes direct (readyAndDrained stays true)
- Flush with isReady=false: buffers (readyAndDrained becomes false)
This directly validates the flush behavior preservation mentioned in the PR.
Reviewed-by: copilot-pull-request-reviewer[bot]
Fixes#12790
0 commit comments