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

Chore: Code to debug 5753 #5754

Closed
wants to merge 8 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,12 @@ method test() {
var documentItem = CreateTestDocument(source, "OpeningDocumentWithTimeoutReportsTimeoutDiagnostic.dfy");
client.OpenDocument(documentItem);
var diagnostics = await GetLastDiagnostics(documentItem);
if (diagnostics.Length > 1) {
throw new Exception(
"There should be only one diagnostic, got :" +
string.Join(", ", diagnostics.Select(diagnostic => diagnostic.ToString() + "(" + diagnostic.Message + ")"))
);
}
Assert.Single(diagnostics);
Assert.Contains("timed out", diagnostics[0].Message);
}
Expand Down
Loading