Skip to content

Commit c0474a0

Browse files
committed
Debug a test.
1 parent 5819c86 commit c0474a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def test_insert_one(self):
602602
self.assertEqual(document["_id"], result.inserted_id)
603603
self.assertFalse(result.acknowledged)
604604
# The insert failed duplicate key...
605-
self.assertEqual(2, db.test.count())
605+
wait_until(lambda: 2 == db.test.count(), 'forcing duplicate key error')
606606

607607
def test_insert_many(self):
608608
db = self.db

0 commit comments

Comments
 (0)