Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Nov 24, 2023
1 parent 87f5438 commit 2a009ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_raft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ void test_follower_append_entries_small_term(void**) {
raft->Process(mes);

assert_true(messages.size() == 1);
auto reply = messages[0].Cast<TAppendEntriesResponse>();
auto maybeReply = messages[0].Maybe<TAppendEntriesResponse>();
assert_true(maybeReply);
auto reply = maybeReply.Cast();
assert_true(reply->Dst == 2);
assert_false(reply->Success);
}
Expand Down

0 comments on commit 2a009ac

Please sign in to comment.