From 37b4a44e23af1971ac67bae346bb27a6f8a51f75 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Tue, 30 May 2023 13:31:48 -0300 Subject: [PATCH] test(olp): fix inter-suite flakiness https://github.com/emqx/emqx/actions/runs/5122717037/jobs/9212645120?pr=10883#step:8:2538 ``` emqx_olp_SUITE:t_overload_cooldown_conn failed on line 96 Reason: {assertMatch,[{module,...},{...}|...]} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Testing lib.emqx.emqx_olp_SUITE: *** FAILED test case 3 of 4 *** %%% emqx_olp_SUITE ==> t_overload_cooldown_conn: FAILED %%% emqx_olp_SUITE ==> Failure/Error: ?assertMatch({ ok , _Pid }, emqtt : connect ( C )) expected: = { ok , _Pid } got: {error,econnrefused} line: 96 %%% emqx_olp_SUITE ==> t_overloaded_conn: OK Testing lib.emqx.emqx_olp_SUITE: TEST COMPLETE, 3 ok, 1 failed of 4 test cases ``` ```sh make ct-suite SUITE=apps/emqx/test/emqx_access_control_SUITE.erl,apps/emqx/test/emqx_olp_SUITE.erl ``` --- apps/emqx/test/emqx_olp_SUITE.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/emqx/test/emqx_olp_SUITE.erl b/apps/emqx/test/emqx_olp_SUITE.erl index 87393686e..7b7052ca4 100644 --- a/apps/emqx/test/emqx_olp_SUITE.erl +++ b/apps/emqx/test/emqx_olp_SUITE.erl @@ -28,6 +28,7 @@ all() -> emqx_common_test_helpers:all(?MODULE). init_per_suite(Config) -> + emqx_common_test_helpers:boot_modules(all), emqx_common_test_helpers:start_apps([]), OldSch = erlang:system_flag(schedulers_online, 1), [{old_sch, OldSch} | Config].