diff --git a/big_tests/tests/service_mongoose_system_metrics_SUITE.erl b/big_tests/tests/service_mongoose_system_metrics_SUITE.erl index 277b4c913e..ae8e1b3ae4 100644 --- a/big_tests/tests/service_mongoose_system_metrics_SUITE.erl +++ b/big_tests/tests/service_mongoose_system_metrics_SUITE.erl @@ -199,7 +199,7 @@ system_metrics_are_reported_to_google_analytics_when_mim_starts(_Config) -> system_metrics_are_reported_to_configurable_google_analytics(_Config) -> mongoose_helper:wait_until(fun is_host_count_reported/0, true), mongoose_helper:wait_until(fun are_modules_reported/0, true), - events_are_reported_to_both_tracking_ids(), + mongoose_helper:wait_until(fun events_are_reported_to_both_tracking_ids/0, true), all_event_have_the_same_client_id(). system_metrics_are_reported_to_a_json_file(_Config) -> @@ -466,7 +466,7 @@ events_are_reported_to_tracking_ids(ConfiguredTrackingIds) -> Tab = ets:tab2list(?ETS_TABLE), ActualTrackingIds = lists:usort([InstanceId || #event{instance_id = InstanceId} <- Tab]), ExpectedTrackingIds = lists:sort([list_to_binary(Tid) || #{id := Tid} <- ConfiguredTrackingIds]), - ?assertEqual(ExpectedTrackingIds, ActualTrackingIds). + ExpectedTrackingIds =:= ActualTrackingIds. is_feature_reported(EventName, Key) -> length(match_events(EventName, Key)) > 0.