@@ -261,11 +261,11 @@ map_max(0) -> undefined;
261
261
map_max (N ) -> N .
262
262
263
263
snapshots_prop (Conf , Commands ) ->
264
- ct :pal (" Commands: ~p~n Conf~p~n " , [Commands , Conf ]),
265
264
try run_snapshot_test (Conf , Commands ) of
266
265
_ -> true
267
266
catch
268
267
Err ->
268
+ ct :pal (" Commands: ~p~n Conf~p~n " , [Commands , Conf ]),
269
269
ct :pal (" Err: ~p~n " , [Err ]),
270
270
false
271
271
end .
@@ -475,18 +475,12 @@ run_snapshot_test0(Conf, Commands) ->
475
475
Entries = lists :zip (Indexes , Commands ),
476
476
{State0 , Effects } = run_log (test_init (Conf ), Entries ),
477
477
State = rabbit_fifo :normalize (State0 ),
478
- % ct:pal("beginning snapshot test run for ~w numn commands ~b",
479
- % [maps:get(name, Conf), length(Commands)]),
480
478
481
479
[begin
482
480
% % drop all entries below and including the snapshot
483
481
Filtered = lists :dropwhile (fun ({X , _ }) when X =< SnapIdx -> true ;
484
482
(_ ) -> false
485
483
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]),
490
484
{S0 , _ } = run_log (SnapState , Filtered ),
491
485
S = rabbit_fifo :normalize (S0 ),
492
486
% assert log can be restored from any release cursor index
0 commit comments