Fix a racy test

This commit is contained in:
Bernie Hackett 2016-03-10 12:50:35 -08:00
parent 264cdd8b5a
commit 64801b45c6

View File

@ -315,7 +315,8 @@ class TestCollection(unittest.TestCase):
joinall(threads)
self.assertTrue('foo_1' in coll.index_information())
wait_until(lambda: 'foo_1' in coll.index_information(),
"find the foo_1 index")
finally:
coll.drop()