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 flaky test: LanguageServerCleansUpOnUnexpectedJsonRpcDisconnectAsync #73997

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Jun 14, 2024

Resolves #73977

Passed 400 iterations in CI (previously failed consistently ~20-30 times on that number)
image

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 14, 2024
@dibarbet dibarbet changed the title run iterations to test in CI WIP run iterations to test in CI Jun 14, 2024

// Shutdown task will close the queue, so we need to wait for it to complete.
await shutdownTask.ConfigureAwait(false);
Assert.True(queueAccessor.IsComplete(), "Unexpected queue not complete");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue was that the shutdown task completes the queue, but this was not waiting for the shutdown task to complete (just verifying it started). This now waits for the shutdown task to complete.

@dibarbet dibarbet changed the title WIP run iterations to test in CI Fix flaky test: LanguageServerCleansUpOnUnexpectedJsonRpcDisconnectAsync Jun 17, 2024
@dibarbet dibarbet marked this pull request as ready for review June 17, 2024 20:30
@dibarbet dibarbet requested a review from a team as a code owner June 17, 2024 20:30
@dibarbet dibarbet enabled auto-merge June 17, 2024 21:10
@dibarbet dibarbet merged commit 47298b8 into dotnet:main Jun 17, 2024
25 checks passed
@dibarbet dibarbet deleted the flaky_lsp_disconnect_test branch June 17, 2024 23:53
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jun 17, 2024
@jjonescz jjonescz modified the milestones: Next, 17.11 P3 Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test LanguageServerCleansUpOnUnexpectedJsonRpcDisconnectAsync failed in CI
3 participants