Skip to content

Commit 5940331

Browse files
author
Roman
committed
try to fix flaky test, wait epoch + 1 block as next epoch fist one
1 parent 120ca3b commit 5940331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e_tests/utils/chain_interactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def next_tempo(current_block: int, tempo: int, netuid: int) -> int:
110110
interval = tempo + 1
111111
last_epoch = current_block - 1 - (current_block + netuid + 1) % interval
112112
next_tempo_ = last_epoch + interval
113-
return next_tempo_
113+
return next_tempo_ + 1
114114

115115

116116
async def wait_interval(

0 commit comments

Comments
 (0)