Skip to content

Commit 2392593

Browse files
committed
test: fix multi-raft leader election test by adding nodes to group 0
1 parent defdf29 commit 2392593

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/multi_raft_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ TEST(MultiRaftTests, LeaderElectionAndFailover) {
122122
std::string peer_id = "node" + std::to_string(j + 1);
123123
cms[i]->register_node(peer_id, "127.0.0.1", base_port + j,
124124
config::RunMode::Coordinator);
125+
cms[i]->add_node_to_group(0, peer_id);
125126
}
126127

127128
rms[i]->get_or_create_group(0);

0 commit comments

Comments
 (0)