Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tst/unit/store/mongo_document_store_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def test_a_slow_build_is_left_to_finish_without_the_caller(short_wait, caplog):

def test_a_unique_index_is_awaited_however_long_it_builds(short_wait):
coll = _Indexing()
threading.Timer(0.3, coll.release.set).start()
started = time.monotonic()
threading.Timer(0.3, coll.release.set).start()
MongoDocumentStore({"c": coll}).ensure_index("c", ["instance_id"], unique=True)
assert time.monotonic() - started >= 0.3
assert coll.built == ["instance_id_unique"]
Expand Down
Loading