Commit 0e755635 authored by Willem Thiart's avatar Willem Thiart
Browse files

Refactor: snapshotting test raft_begin_snapshot usage

parent 6fbdcf34
......@@ -713,7 +713,7 @@ void TestRaft_cancel_snapshot_restores_state(CuTest* tc)
raft_recv_entry(r, &ety, &cr);
raft_set_commit_idx(r, 2);
CuAssertIntEquals(tc, 0, raft_begin_snapshot(r));
CuAssertIntEquals(tc, 0, raft_begin_snapshot(r, 0));
CuAssertIntEquals(tc, 0, raft_end_snapshot(r));
/* more entries */
......@@ -726,7 +726,7 @@ void TestRaft_cancel_snapshot_restores_state(CuTest* tc)
/* begin and cancel another snapshot */
raft_set_commit_idx(r, 4);
CuAssertIntEquals(tc, 0, raft_begin_snapshot(r));
CuAssertIntEquals(tc, 0, raft_begin_snapshot(r, 0));
CuAssertIntEquals(tc, 1, raft_snapshot_is_in_progress(r));
CuAssertIntEquals(tc, 0, raft_cancel_snapshot(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