Skip to content

Commit

Permalink
tests: Wait longer for archival
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Nov 12, 2024
1 parent 1d6c607 commit 4ffbbb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,15 @@ def gen_data(id, ts):
op_client.load(data_now, with_metadata=True)
# Trigger and wait for archival (ignore possibility of actual trigger)
publisher.publish({})
time.sleep(30)
time.sleep(60)
# Check data_now doesn't end up in the archive DB
assert ar_schema.count(ar_client.dump()) == 0

# Load data_3w and data_4w
op_client.load(op_schema.merge(data_3w, [data_4w]), with_metadata=True)
# Trigger and wait for archival (ignore possibility of actual trigger)
publisher.publish({})
time.sleep(30)
time.sleep(60)
# Check data_4w is in the archive database
dump = ar_client.dump()
assert all(
Expand All @@ -434,7 +434,7 @@ def gen_data(id, ts):
), "Some three-week old data in the archive"
# Trigger and wait for another archival (ignore chance of actual trigger)
publisher.publish({})
time.sleep(30)
time.sleep(60)
# Check data_3w is now in the archive database
dump = ar_client.dump()
assert all(
Expand Down

0 comments on commit 4ffbbb3

Please sign in to comment.