Skip to content

Fix flakiness in LSP references tests due to non-deterministic ordering #74014

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

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
@ghost ghost 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.

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