@@ -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 (),
@@ -293,9 +294,12 @@ connection(Config) ->
293294 [_ ] = read_table_rpc (Config , connection_coarse_metrics ),
294295 ok = rabbit_ct_client_helpers :close_connection (Conn ),
295296 force_metric_gc (Config ),
296- [] = read_table_rpc (Config , connection_created ),
297- [] = read_table_rpc (Config , connection_metrics ),
298- [] = read_table_rpc (Config , connection_coarse_metrics ),
297+ ? awaitMatch ([], read_table_rpc (Config , connection_created ),
298+ 30000 ),
299+ ? awaitMatch ([], read_table_rpc (Config , connection_metrics ),
300+ 30000 ),
301+ ? awaitMatch ([], read_table_rpc (Config , connection_coarse_metrics ),
302+ 30000 ),
299303 ok .
300304
301305channel (Config ) ->
0 commit comments