summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2019-02-01 20:34:41 +0300
committerMichael Klishin <mklishin@pivotal.io>2019-02-01 20:34:41 +0300
commit3df6e2faa04603f001b86f0cc4507c3b1badc027 (patch)
treee790f0887556e7afdd4ba7777bb7441879523cc8 /test
parent82c23614e1b5364dde4723148af7687abfd5b2b7 (diff)
downloadrabbitmq-server-git-3df6e2faa04603f001b86f0cc4507c3b1badc027.tar.gz
rabbit_fifo_prop_SUITE: remove some dead code, ct:pal/2 only errors
Diffstat (limited to 'test')
-rw-r--r--test/rabbit_fifo_prop_SUITE.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/rabbit_fifo_prop_SUITE.erl b/test/rabbit_fifo_prop_SUITE.erl
index c9a9183b5f..c4f5690b72 100644
--- a/test/rabbit_fifo_prop_SUITE.erl
+++ b/test/rabbit_fifo_prop_SUITE.erl
@@ -261,11 +261,11 @@ map_max(0) -> undefined;
map_max(N) -> N.
snapshots_prop(Conf, Commands) ->
- ct:pal("Commands: ~p~nConf~p~n", [Commands, Conf]),
try run_snapshot_test(Conf, Commands) of
_ -> true
catch
Err ->
+ ct:pal("Commands: ~p~nConf~p~n", [Commands, Conf]),
ct:pal("Err: ~p~n", [Err]),
false
end.
@@ -475,18 +475,12 @@ run_snapshot_test0(Conf, Commands) ->
Entries = lists:zip(Indexes, Commands),
{State0, Effects} = run_log(test_init(Conf), Entries),
State = rabbit_fifo:normalize(State0),
- % ct:pal("beginning snapshot test run for ~w numn commands ~b",
- % [maps:get(name, Conf), length(Commands)]),
[begin
%% drop all entries below and including the snapshot
Filtered = lists:dropwhile(fun({X, _}) when X =< SnapIdx -> true;
(_) -> false
end, Entries),
- % ct:pal("running from snapshot at ~w ~p", [SnapIdx, SnapState]),
- % ct:pal("Snapshot tests run log:~n"
- % "~p~n from ~n~p~n Entries~n~p~n",
- % [Filtered, SnapState, Entries]),
{S0, _} = run_log(SnapState, Filtered),
S = rabbit_fifo:normalize(S0),
% assert log can be restored from any release cursor index