Repository navigation
Wait for the shared store read in the shared choice test - #29
Draft
jwrosewell wants to merge 1 commit into
Draft
jwrosewell wants to merge 1 commit into
jwrosewell wants to merge 1 commit into
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.
The problem
SharedChoice_SecondSite_NoDialogAndDirectFlag_FirefoxinBrowser51Did/PmpAcceptanceTests.csfailed when the suite ran against a cloud reached over the internet by HTTPS, rather than a container on the same machine. The message was:PMP did make the read. The
GET /api/v4/pmp/prefrequest was still in flight (done=False) when the test looked for it. Aftervisitor.WaitForClientRounds(1)the test took the first finishedGETat once (lines 233 and 234 onrc), without waiting for that request. Against a local container the read finishes almost immediately, so the gap never showed. The same test in Chrome passed in the same run, and the Firefox test failed the same way against two separate hosts.The change
The test now waits for the read with
Harness.Until, as it already does for the shared write at lines 177 and 223, and asserts on the finished request. TheAssert.IsNotNullgoes, because the wait fails with the same request list when no read finishes within the harness's 30 seconds of patience. The assertions on what the read answers, that the dialog stays closed and that the answer reaches the client script, are unchanged.How it was checked