@@ -109,16 +109,19 @@ prop_connection_channel_counts(Config) ->
109
109
{1 , force_stats }])),
110
110
begin
111
111
% ensure we begin with no connections
112
+ ct :pal (" Init testcase" ),
112
113
true = validate_counts (Config , []),
113
114
Cons = lists :foldl (fun (Op , Agg ) ->
114
115
execute_op (Config , Op , Agg )
115
116
end , [], Ops ),
116
117
% % TODO retry a few times
118
+ ct :pal (" Check testcase" ),
117
119
Res = retry_for (
118
120
fun () ->
119
121
force_stats (Config ),
120
122
validate_counts (Config , Cons ) end ,
121
123
60 ),
124
+ ct :pal (" Cleanup testcase" ),
122
125
cleanup (Cons ),
123
126
rabbit_ct_helpers :await_condition (
124
127
fun () ->
@@ -138,8 +141,16 @@ validate_counts(Config, Conns) ->
138
141
Ch1 = length (http_get_from_node (Config , 0 , " /channels" )),
139
142
Ch2 = length (http_get_from_node (Config , 1 , " /channels" )),
140
143
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 .
143
154
144
155
145
156
cleanup (Conns ) ->
0 commit comments