Skip to content

Commit 64801b4

Browse files
committed
Fix a racy test
1 parent 264cdd8 commit 64801b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/test_collection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ def run(self):
315315

316316
joinall(threads)
317317

318-
self.assertTrue('foo_1' in coll.index_information())
318+
wait_until(lambda: 'foo_1' in coll.index_information(),
319+
"find the foo_1 index")
319320
finally:
320321
coll.drop()
321322

0 commit comments

Comments
 (0)