Skip to content

Commit 7ad876c

Browse files
Stronger preconditions before calling wait_for_commit - expect primary unanimity (#7705)
Co-authored-by: Max <maxtropets@microsoft.com>
1 parent 834e750 commit 7ad876c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/e2e_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def find_snapshot(node):
638638
node.resume()
639639

640640
# Heal after all the suspensions, before running further tests
641-
network.wait_for_new_primary_in((primary, *backups))
641+
network.wait_for_primary_unanimity()
642642
network.wait_for_node_commit_sync()
643643

644644

tests/partitions_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,7 @@ def force_become_primary(network, args, target_node):
885885
rules.drop()
886886
# Wait for the old primary to observe the new one
887887
network.wait_for_new_primary_in({target_node}, nodes=[primary])
888+
network.wait_for_primary_unanimity()
888889
primary = target_node
889890

890891
# Ensure a signature has been produced in the new term

0 commit comments

Comments
 (0)