@@ -46,7 +46,8 @@ merge_app_env(Config) ->
4646 rabbit_ct_helpers :merge_app_env (Config ,
4747 {rabbit , [
4848 {collect_statistics , fine },
49- {collect_statistics_interval , 500 }
49+ {collect_statistics_interval , 500 },
50+ {core_metrics_gc_interval , 5000 }
5051 ]}).
5152init_per_suite (Config ) ->
5253 rabbit_ct_helpers :log_environment (),
@@ -295,9 +296,12 @@ connection(Config) ->
295296 [_ ] = read_table_rpc (Config , connection_coarse_metrics ),
296297 ok = rabbit_ct_client_helpers :close_connection (Conn ),
297298 force_metric_gc (Config ),
298- [] = read_table_rpc (Config , connection_created ),
299- [] = read_table_rpc (Config , connection_metrics ),
300- [] = read_table_rpc (Config , connection_coarse_metrics ),
299+ ? awaitMatch ([], read_table_rpc (Config , connection_created ),
300+ 30000 ),
301+ ? awaitMatch ([], read_table_rpc (Config , connection_metrics ),
302+ 30000 ),
303+ ? awaitMatch ([], read_table_rpc (Config , connection_coarse_metrics ),
304+ 30000 ),
301305 ok .
302306
303307channel (Config ) ->
0 commit comments