Flaky: MTConnectSubscribeTests.A_rebaseline_that_delivers_nothing_still_advances_the_reconnect_backoff #661
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Failed once in a full-suite run on master
98c00904(2026-10-09):driver.ReconnectAttempts should be greater than 5 but was 5(MTConnectSubscribeTests.cs:1071). Passes 8/8 in isolation.Likely a race in the test: it waits for the 6th sample call (
WaitForSampleCallsAsync(6)) and then readsReconnectAttempts, but the counter is advanced on the pump's backoff path, which can lag the sample-call signal under full-suite load. Fix: wait for the counter itself (poll/AwaitAssert untilReconnectAttempts > earlywithin the watchdog) rather than inferring it from the call count. Test added in9631a40f(#650 review).Fixed and pushed in master
fecfdd22(branch commits480b000f,31e2148a). The flaky reconnect test waited on a sample-call proxy that could advance beforeReconnectAttempts; both affected tests now wait onReconnectAttemptsitself via a cancellable, watchdog-bounded loop (no background spin). Test-only change. Verified: MTConnectSubscribeTests 10/10 runs green (42 each); full MTConnect suite 633/0 on the merged result.