Skip to content

Commit 4fe1b5e

Browse files
author
tbierwiaczon
committed
stabilty sleeps
1 parent e8d4a55 commit 4fe1b5e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/apollo/test_skvbc_restart_recovery.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,18 @@ async def test_stop_primary_during_initiated_view_change(self, bft_network, trac
529529

530530
bft_network.stop_replica(next_primary)
531531

532+
expected_final_view = expected_final_view + 1
533+
await skvbc.run_concurrent_ops(10)
534+
await bft_network.wait_for_view(
535+
replica_id=random.choice(bft_network.all_replicas(without={primary, next_primary})),
536+
expected=lambda v: v == expected_final_view,
537+
err_msg="Make sure view change has been triggered."
538+
)
532539
bft_network.start_replica(primary)
533540
bft_network.start_replica(next_primary)
534541

542+
await trio.sleep(seconds=10)
543+
535544
await bft_network.wait_for_fast_path_to_be_prevalent(
536545
run_ops=lambda: skvbc.run_concurrent_ops(num_ops=20, write_weight=1), threshold=20)
537546

0 commit comments

Comments
 (0)