Skip to content

Commit 6bcb5ee

Browse files
authored
chore: update test remove snapshot (#2493)
1 parent 20237d5 commit 6bcb5ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/core/test_state_sync.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,11 @@ def test_remove_interval_missing_snapshot(
349349
),
350350
version="a",
351351
)
352-
# Only add snapshot_a to simulate that snapshot_b is missing
353-
state_sync.push_snapshots([snapshot_a])
352+
state_sync.push_snapshots([snapshot_a, snapshot_b])
354353
state_sync.add_interval(snapshot_a, "2020-01-01", "2020-01-10")
355354
state_sync.add_interval(snapshot_b, "2020-01-11", "2020-01-30")
355+
# Remove snapshot b in order to test the scenario where it is missing
356+
state_sync.delete_snapshots([snapshot_b.snapshot_id])
356357

357358
snapshots = state_sync.get_snapshots([snapshot_a, snapshot_b])
358359
assert len(snapshots) == 1

0 commit comments

Comments
 (0)