Skip to content

Commit a1efafb

Browse files
authored
Only wait for green collection status in empty snapshot test (#7360)
1 parent 3856ff6 commit a1efafb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/consensus_tests/test_partial_snapshot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ def test_partial_snapshot_empty(tmp_path: pathlib.Path):
134134

135135
write_peer, read_peer = bootstrap_peers(tmp_path, bootstrap_points = 1000, recover_read= True)
136136

137+
# Don't let asynchronous optimizations mess with our test
138+
wait_collection_green(write_peer, COLLECTION)
139+
137140
# Collection snapshot doesn't affect partial snapshot recovery timestamp
138141
recovery_ts = get_telemetry_collections(read_peer)[0]['shards'][0]['partial_snapshot']['recovery_timestamp']
139142
assert recovery_ts == 0
@@ -259,9 +262,6 @@ def bootstrap_collection(peer_url, shards = 1, bootstrap_points = 0):
259262
if bootstrap_points > 0:
260263
upsert(peer_url, bootstrap_points)
261264

262-
# Don't let asynchronous optimizations mess with our tests
263-
wait_collection_green(peer_url, COLLECTION)
264-
265265
def recover_collection(peer_url: str, recover_from_url: str):
266266
snapshot_url = create_collection_snapshot(recover_from_url)
267267
recover_collection_snapshot(peer_url, snapshot_url)

0 commit comments

Comments
 (0)