Skip to content

test_data: fix faulty patch#476

Merged
blackboxsw merged 3 commits intocanonical:masterfrom
OddBloke:tests
Jul 10, 2020
Merged

test_data: fix faulty patch#476
blackboxsw merged 3 commits intocanonical:masterfrom
OddBloke:tests

Conversation

@OddBloke
Copy link
Copy Markdown
Collaborator

@OddBloke OddBloke commented Jul 2, 2020

I've been seeing intermittent failures of this test, and I tracked it
down to something to do withtest_features.py: running this test after
test_features.py causes the failure, but the inverse does not.

This fixed patch ensures that the test will pass regardless of ordering.

OddBloke added 2 commits July 2, 2020 16:45
I've been seeing intermittent failures of this test, and I tracked it
down to something to do with`test_features.py`: running this test after
`test_features.py` causes the failure, but the inverse does not.

This fixed patch ensures that the test will pass regardless of ordering.
@OddBloke
Copy link
Copy Markdown
Collaborator Author

OddBloke commented Jul 6, 2020

FYI, I was able to reproduce this by running:

pytest cloudinit/tests/test_features.py tests/unittests/test_data.py

and seeing it fail. Running it with the parameters in the opposite order passes.

@OddBloke OddBloke requested a review from TheRealFalcon July 6, 2020 19:33
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

Good catch!

@blackboxsw blackboxsw merged commit b936667 into canonical:master Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants