Skip to content

Commit

Permalink
More tests. (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd authored Oct 5, 2023
1 parent 71f6a79 commit 2d1bda7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/MessagingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d1bda7

Please sign in to comment.