Skip to content
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

Merged
merged 8 commits into from
Aug 31, 2022

Conversation

MikaelMayer
Copy link
Member

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.

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;
Copy link
Member Author

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?

Copy link
Member

@keyboardDrummer keyboardDrummer Aug 30, 2022

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.

Copy link
Member Author

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.

@MikaelMayer MikaelMayer self-assigned this Aug 29, 2022
@MikaelMayer MikaelMayer enabled auto-merge (squash) August 30, 2022 14:59
@MikaelMayer MikaelMayer merged commit d6b6927 into master Aug 31, 2022
@MikaelMayer MikaelMayer deleted the fix-2653-return-path-instead-of-precondition branch August 31, 2022 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A precondition for this call might not hold ... return path?
2 participants