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 in views package #33560

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Fix flaky test in views package #33560

merged 1 commit into from
Jul 20, 2023

Conversation

liamcervante
Copy link
Member

@liamcervante liamcervante commented Jul 20, 2023

This PR makes the test output deterministic by printing the existing states in the order their run blocks are defined within the test file, instead of the order they are in the go map.

The test is failing in main but doesn't fail for me locally: https://github.com/hashicorp/terraform/actions/runs/5612594195/jobs/10271183062

@liamcervante liamcervante merged commit ad26644 into main Jul 20, 2023
4 checks passed
@liamcervante liamcervante deleted the liamcervante/tests/flaky branch July 20, 2023 16:57
@github-actions
Copy link

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants