Skip to content

Commit 6c5117f

Browse files
committed
Fix ra_server:follower_install_snapshot_machine_version
In this test we end up in update_last_applied with a fake_fd set in base_state, so let's mock it as a no-op.
1 parent 07c2673 commit 6c5117f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/ra_server_SUITE.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ setup_log() ->
171171
meck:expect(ra_server_meta, store_sync, fun (P, V, T, L) ->
172172
put(P, {V, T, L}), ok
173173
end),
174-
meck:expect(ra_server_meta, update_last_applied, fun (P, L) ->
174+
meck:expect(ra_server_meta, update_last_applied, fun
175+
(fake_fd, _) ->
176+
ok;
177+
(P, L) ->
175178
{V, T, _} = get(P),
176179
put(P, {V, T, L}), ok
177180
end),

0 commit comments

Comments
 (0)