Unit tests rely on non-deterministic ordering

Bug #1995768 reported by Tony Breeds
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
masakari
New
Undecided
Unassigned

Bug Description

From: https://zuul.opendev.org/t/openstack/build/e9e1db71bf4c430983553ab6a2f2709e

An unrelated change passed the masakari unit tests in check but failed in gate with the following error:

    testtools.matchers._impl.MismatchError: !=:
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.