Skip to content

Commit 6f3e23b

Browse files
committed
Test debugging
1 parent 64801b4 commit 6f3e23b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_collection.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def run(self):
301301
pass
302302
coll.ensure_index('foo')
303303
coll.drop_indexes()
304-
coll.ensure_index('foo')
304+
coll.create_index('foo')
305305

306306
try:
307307
threads = []
@@ -315,8 +315,7 @@ def run(self):
315315

316316
joinall(threads)
317317

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

0 commit comments

Comments
 (0)