Repository navigation
test: verify reconnect policy without exact OS timer assumption - #1601
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1598. Repair the output-delay reconnect test's Windows timer assumption. No production implementation, Rust port, timing setting or queue behavior changes.
RED 915566a compiles the actual reconnect/preserve case: a valid requested two-second retry measured at 1,999,999,999 ns falsely fails, and incorrect reported timeout values are accepted. Three failures across two focused tests.
GREEN be053d7 captures the reconnect signal's timeout_sec under the existing record mutex, asserts exactly one reconnect signal requesting two seconds, and prints the requested timeout, elapsed nanoseconds and signal count. The invalid exact OS elapsed-time assertion is replaced. Every other existing assertion and test registration is unchanged (49 of 50 existing assertion/registration expressions retained, plus two exact signal assertions). Production timers and existing queue/packet/delay/stop checks are unchanged.
Windows relative timers can expire within one system clock tick of their nominal deadline: Microsoft Timer Accuracy. This change checks OBS's timeout policy directly and leaves queue retention/delay growth verified end to end; it adds no arbitrary clock tolerance, sleeps or retries.
Validation
This is an explicit test repair, not modification of a C test to accommodate a Rust port. No public header, exported API, workflow file, WebSocket code/gitlink or user-visible behavior is changed. Rust Tier 1/3 and protocol Tier 4 do not apply; real Tier 2 coverage is required before completion.
Native results
PR CI 39544716923 passed. Linux output-delay passes C OFF 9.59 s and Rust ON 9.60 s; all four shards pass. Native Windows Tier 2 job 119041878897 passes all 167 tests per backend, including output-delay OFF 9.55 s and ON 9.54 s. This verifies the new signal assertions and existing queue/packet checks against both real libraries. No retry was needed.