Skip to content

Commit cce6d9c

Browse files
committed
Add sleep to test to avoid eventual consistency errors
1 parent d5f09c0 commit cce6d9c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

integration/test_collection_batch_delete.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import datetime
2+
import time
23
import uuid
34
from typing import List
45

@@ -645,7 +646,8 @@ def test_delete_many_with_consistency_level(
645646
Property(name="text", data_type=DataType.TEXT),
646647
Property(name="int", data_type=DataType.INT),
647648
],
648-
).with_consistency_level(ConsistencyLevel.ONE)
649+
).with_consistency_level(ConsistencyLevel.ALL)
650+
time.sleep(1)
649651
collection.data.insert_many(
650652
[
651653
DataObject(properties={"int": 10}, uuid=UUID1),

0 commit comments

Comments
 (0)