From 92b79a4f69cb1966054de86581c3741cf07cc30c Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Wed, 25 Oct 2023 10:59:54 +0000 Subject: [PATCH] Update election --- tests/raft_scenarios/election | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/raft_scenarios/election b/tests/raft_scenarios/election index cc657c3eb180..03eb21397f86 100644 --- a/tests/raft_scenarios/election +++ b/tests/raft_scenarios/election @@ -1,20 +1,24 @@ -nodes,0,1,2 -connect,0,1 -connect,1,2 -connect,0,2 - -# Node 0 starts first, and begins sending messages first +# Node 0 starts first, and wins the first election +start_node periodic_one,0,110 dispatch_all -assert_is_primary,0 -assert_is_backup,1 -assert_is_backup,2 +# Add two more nodes +trust_node,1,1 +trust_node,1,2 +emit_signature,1 +periodic_all,10 +dispatch_all +# Commit reconfiguration periodic_all,10 dispatch_all -state_all +# Three node network is ready +assert_is_primary,0 +assert_is_backup,1 +assert_is_backup,2 +assert_state_sync replicate,1,helloworld emit_signature,1