Skip to content

Commit e120f3f

Browse files
committed
Fix collection creation retry loop and messages
1 parent ac359e2 commit e120f3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_collection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def test_collection_management(db, bad_db, cluster):
209209
)
210210
except CollectionCreateError:
211211
print(
212-
"Failed to create collection with autoincrement key generator,"
212+
"Failed to create collection with autoincrement key generator, "
213213
"retrying..."
214214
)
215215
time.sleep(3)
@@ -218,8 +218,9 @@ def test_collection_management(db, bad_db, cluster):
218218
assert key_options["key_generator"] == "autoincrement"
219219
assert key_options["key_increment"] == 9
220220
assert key_options["key_offset"] == 100
221+
break
221222
assert col is not None, (
222-
"Failed to create collection with autoincrement"
223+
"Failed to create collection with autoincrement "
223224
"key generator after multiple attempts"
224225
)
225226

0 commit comments

Comments
 (0)