Unit tests rely on non-deterministic ordering
Bug #1995768 reported by
Tony Breeds
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari |
New
|
Undecided
|
Unassigned |
Bug Description
From: https:/
An unrelated change passed the masakari unit tests in check but failed in gate with the following error:
testtools.
reference = [('1', 'active'), ('2', 'stopped'), ('3', 'error'), ('3', 'stopped')]
actual = [('1', 'active'), ('3', 'error'), ('2', 'stopped'), ('3', 'stopped')]
As you can see the tuples are all there but the ordering isn't identical. The unit tests shoudl be made robust to ordering issues.
To post a comment you must log in.