Skip to content

Commit 3df6e2f

Browse files
rabbit_fifo_prop_SUITE: remove some dead code, ct:pal/2 only errors
1 parent 82c2361 commit 3df6e2f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/rabbit_fifo_prop_SUITE.erl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,11 @@ map_max(0) -> undefined;
261261
map_max(N) -> N.
262262

263263
snapshots_prop(Conf, Commands) ->
264-
ct:pal("Commands: ~p~nConf~p~n", [Commands, Conf]),
265264
try run_snapshot_test(Conf, Commands) of
266265
_ -> true
267266
catch
268267
Err ->
268+
ct:pal("Commands: ~p~nConf~p~n", [Commands, Conf]),
269269
ct:pal("Err: ~p~n", [Err]),
270270
false
271271
end.
@@ -475,18 +475,12 @@ run_snapshot_test0(Conf, Commands) ->
475475
Entries = lists:zip(Indexes, Commands),
476476
{State0, Effects} = run_log(test_init(Conf), Entries),
477477
State = rabbit_fifo:normalize(State0),
478-
% ct:pal("beginning snapshot test run for ~w numn commands ~b",
479-
% [maps:get(name, Conf), length(Commands)]),
480478

481479
[begin
482480
%% drop all entries below and including the snapshot
483481
Filtered = lists:dropwhile(fun({X, _}) when X =< SnapIdx -> true;
484482
(_) -> false
485483
end, Entries),
486-
% ct:pal("running from snapshot at ~w ~p", [SnapIdx, SnapState]),
487-
% ct:pal("Snapshot tests run log:~n"
488-
% "~p~n from ~n~p~n Entries~n~p~n",
489-
% [Filtered, SnapState, Entries]),
490484
{S0, _} = run_log(SnapState, Filtered),
491485
S = rabbit_fifo:normalize(S0),
492486
% assert log can be restored from any release cursor index

0 commit comments

Comments
 (0)