Skip to content

Commit 5d8e814

Browse files
committed
PYTHON-2237 Use sort when verifying contents of outcome collections
1 parent 5efdcb8 commit 5d8e814

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/utils_spec_runner.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,11 @@ def run_scenario(self, scenario_def, test):
599599
outcome_coll_name,
600600
read_preference=ReadPreference.PRIMARY,
601601
read_concern=ReadConcern('local'))
602+
actual_data = list(outcome_coll.find(sort=[('_id', 1)]))
602603

603604
# The expected data needs to be the left hand side here otherwise
604605
# CompareType(Binary) doesn't work.
605-
self.assertEqual(
606-
wrap_types(expected_c['data']), list(outcome_coll.find()))
607-
606+
self.assertEqual(wrap_types(expected_c['data']), actual_data)
608607

609608
def expect_any_error(op):
610609
if isinstance(op, dict):

0 commit comments

Comments
 (0)