-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: "Failing precondition" on tooltip instead of "return path" #2654
fix: "Failing precondition" on tooltip instead of "return path" #2654
Conversation
Fixes #2653. Also made the tests more robust by removing the need of Task.Delay
@@ -229,6 +242,9 @@ method Abs(x: int) returns (y: int) | |||
await client.OpenDocumentAndWaitAsync(documentItem, CancellationToken); | |||
var lastStatus = await WaitUntilDafnyFinishes(documentItem); | |||
Assert.AreEqual(expectedStatus, lastStatus); | |||
foreach (var document in Documents.Documents) { | |||
await document.LastDocument; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@keyboardDrummer do your confirm it's the right way to wait for the final translated and verified document to be available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If verification has been triggered, like through verification on change or manual verification, this will wait for verification to complete. If verification has not been triggered, this returns after translation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, that's what I wanted to know.
Fixes #2653.
Also made the tests more robust by removing the need of Task.Delay
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.