From 2d1bda75e9dff0a6d7514e39ddcff49096c56585 Mon Sep 17 00:00:00 2001 From: Brian Szmyd Date: Wed, 4 Oct 2023 21:38:32 -0600 Subject: [PATCH] More tests. (#36) --- src/tests/MessagingTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tests/MessagingTest.cpp b/src/tests/MessagingTest.cpp index 5f411be..434c8ab 100644 --- a/src/tests/MessagingTest.cpp +++ b/src/tests/MessagingTest.cpp @@ -227,8 +227,10 @@ TEST_F(MessagingFixture, MemberCrash) { {"op_type", 2}, }); auto factory = std::make_shared< mesg_factory >(custom_factory_, group_id_, "test_type"); - auto const dest_cfg = nuraft::srv_config(to_server_id(app_1_->id_), to_string(app_1_->id_)); - EXPECT_TRUE(factory->append_entry(buf, dest_cfg).get()); + auto const dest_cfg_1 = nuraft::srv_config(to_server_id(app_1_->id_), to_string(app_1_->id_)); + auto const dest_cfg_2 = nuraft::srv_config(to_server_id(app_2_->id_), to_string(app_2_->id_)); + EXPECT_TRUE(factory->append_entry(buf, dest_cfg_1).get()); + EXPECT_TRUE(factory->append_entry(buf, dest_cfg_2).get()); app_3_ = std::make_shared< TestApplication >("sm3", ports[2]); app_3_->set_id(our_id);