Patch Changes
-
#1340
3cbe776Thanks @threepointone! -waitForIdleandwaitUntilStablenow also drain in-flight submits that have passed the concurrency decision but haven't yet entered the turn queue (i.e. submits mid-persistMessages). Previously these helpers only awaited_turnQueue.waitForIdle(), which could return while a submit was still tracked in_pendingEnqueueCount— racing with anything that called them (tests, recovery code, callers waiting for quiescence).Fixes a long-standing flake in the
merge concatenates overlapping queued user messages into one follow-up turntest. The test's stream durations are also bumped (10×100ms → 15×150ms) to give the WS dispatch enough headroom under CI load to bump_latestOverlappingSubmitSequencebefore the first turn finishes.