Skip to content

Commit

Permalink
fix test broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Pana committed Nov 19, 2024
1 parent 959397c commit 23a5863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/full_node_tests/remove_old_eras_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def run_test(self):
self.log.info(f"checking existing blocks...")

# TODO We can use `num_blocks` here if we can guarantee all blocks form a chain.
latest_epoch = self.rpc[ARCHIVE_NODE].epoch_number()
latest_epoch = self.rpc[ARCHIVE_NODE].epoch_number("latest_state")
# we expect the last few eras are not removed
for epoch in range(8 * ERA_EPOCH_COUNT, latest_epoch+1):
for epoch in range(8 * ERA_EPOCH_COUNT, latest_epoch):
archive_block = self.rpc[ARCHIVE_NODE].block_by_epoch(hex(epoch), include_txs=True)
assert(archive_block != None)

Expand Down

0 comments on commit 23a5863

Please sign in to comment.