Skip to content

Commit 694d3aa

Browse files
committed
Tests: clustering_prop_SUITE add logs
1 parent 537f581 commit 694d3aa

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 () -> validate_counts(Config, []) end,
@@ -136,8 +139,16 @@ validate_counts(Config, Conns) ->
136139
Ch1 = length(http_get_from_node(Config, 0, "/channels")),
137140
Ch2 = length(http_get_from_node(Config, 1, "/channels")),
138141
Ch3 = length(http_get_from_node(Config, 2, "/channels")),
139-
[Expected, Expected, Expected, ChanCount, ChanCount, ChanCount]
140-
=:= [C1, C2, C3, Ch1, Ch2, Ch3].
142+
Res = ([Expected, Expected, Expected, ChanCount, ChanCount, ChanCount]
143+
=:= [C1, C2, C3, Ch1, Ch2, Ch3]),
144+
case Res of
145+
false ->
146+
ct:pal("Validate counts connections: ~p channels: ~p got ~p",
147+
[Expected, ChanCount, [C1, C2, C3, Ch1, Ch2, Ch3]]);
148+
true ->
149+
ok
150+
end,
151+
Res.
141152

142153

143154
cleanup(Conns) ->

0 commit comments

Comments
 (0)