Commit 863fb439 authored by Yossi Gottlieb's avatar Yossi Gottlieb
Browse files

Fix memory sanitizer error due to test problem.

parent 89d793a0
......@@ -543,6 +543,10 @@ void TestRaft_leader_sends_appendentries_when_node_next_index_was_compacted(CuTe
CuAssertIntEquals(tc, 0, raft_end_load_snapshot(r));
CuAssertIntEquals(tc, 3, raft_get_current_idx(r));
/* reconfigure nodes based on config data "embedded in snapshot" */
node = raft_add_node(r, NULL, 2, 0);
raft_add_node(r, NULL, 3, 0);
/* node wants an entry that was compacted */
raft_node_set_next_idx(node, raft_get_current_idx(r));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment