Skip to content

Commit 1ab9503

Browse files
committed
Tests: clustering_prop_SUITE add logs
1 parent d348de7 commit 1ab9503

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

deps/rabbitmq_management/test/clustering_prop_SUITE.erl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,19 @@ prop_connection_channel_counts(Config) ->
109109
{1, force_stats}])),
110110
begin
111111
% ensure we begin with no connections
112+
ct:pal("Init testcase"),
112113
true = validate_counts(Config, []),
113114
Cons = lists:foldl(fun (Op, Agg) ->
114115
execute_op(Config, Op, Agg)
115116
end, [], Ops),
116117
%% TODO retry a few times
118+
ct:pal("Check testcase"),
117119
Res = retry_for(
118120
fun() ->
119121
force_stats(Config),
120122
validate_counts(Config, Cons) end,
121123
60),
124+
ct:pal("Cleanup testcase"),
122125
cleanup(Cons),
123126
rabbit_ct_helpers:await_condition(
124127
fun () ->
@@ -138,8 +141,16 @@ validate_counts(Config, Conns) ->
138141
Ch1 = length(http_get_from_node(Config, 0, "/channels")),
139142
Ch2 = length(http_get_from_node(Config, 1, "/channels")),
140143
Ch3 = length(http_get_from_node(Config, 2, "/channels")),
141-
[Expected, Expected, Expected, ChanCount, ChanCount, ChanCount]
142-
=:= [C1, C2, C3, Ch1, Ch2, Ch3].
144+
Res = ([Expected, Expected, Expected, ChanCount, ChanCount, ChanCount]
145+
=:= [C1, C2, C3, Ch1, Ch2, Ch3]),
146+
case Res of
147+
false ->
148+
ct:pal("Validate counts connections: ~p channels: ~p got ~p",
149+
[Expected, ChanCount, [C1, C2, C3, Ch1, Ch2, Ch3]]);
150+
true ->
151+
ok
152+
end,
153+
Res.
143154

144155

145156
cleanup(Conns) ->

0 commit comments

Comments
 (0)