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 #59632

Merged
merged 1 commit into from
Feb 18, 2022
Merged

Fix flaky test #59632

merged 1 commit into from
Feb 18, 2022

Conversation

jasonmalinowski
Copy link
Member

This test was trying to assert that we didn't do a reparse by comparing the green nodes of the two trees. We didn't hold onto the root of the old tree, so it was possible for the root to fall away if we were testing recoverable trees. If the root had fallen away, it meant that asking for the old root would recover it as well, which would result in deserializing the roots twice and the green nodes being different.

The fix is to ensure the root doesn't fall away.

This test was trying to assert that we didn't do a reparse by comparing
the green nodes of the two trees. We didn't hold onto the root of the
old tree, so it was possible for the root to fall away if we were
testing recoverable trees. If the root had fallen away, it meant
that asking for the old root would recover it as well, which would
result in deserializing the roots twice and the green nodes being
different.

The fix is to ensure the root doesn't fall away.
@jasonmalinowski jasonmalinowski self-assigned this Feb 18, 2022
@jasonmalinowski jasonmalinowski merged commit b542ba6 into dotnet:main Feb 18, 2022
@jasonmalinowski jasonmalinowski deleted the fix-flaky-test branch February 18, 2022 05:07
@ghost ghost added this to the Next milestone Feb 18, 2022
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P2 Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants