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 flakiness in LSP references tests due to non-deterministic ordering #74014

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

dibarbet
Copy link
Member

Resolves #74009

@dibarbet dibarbet requested a review from a team as a code owner June 14, 2024 22:45
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 14, 2024
@dibarbet dibarbet force-pushed the fix_lsp_references_flakiness branch from 4853401 to b77ed2e Compare June 14, 2024 22:46
AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location));

// Results are returned in a non-deterministic order, so we order them by location
Copy link
Member Author

Choose a reason for hiding this comment

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

moved all the ordering into the helper so anyone calling it gets deterministic behavior.

@dibarbet dibarbet enabled auto-merge June 14, 2024 23:02
@dibarbet dibarbet merged commit ad9ff58 into dotnet:main Jun 15, 2024
25 checks passed
@dibarbet dibarbet deleted the fix_lsp_references_flakiness branch June 15, 2024 00:08
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jun 15, 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-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
3 participants