Merge pull request #12666 from thalesmg/test-flaky-machine-m-20240307

test(machine): attempt to stabilize flaky test
This commit is contained in:
Thales Macedo Garitezi 2024-03-08 08:57:35 -03:00 committed by GitHub
commit 5dfd864c1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 28 additions and 25 deletions

View File

@ -147,6 +147,7 @@ t_open_ports_check(Config) ->
ok = emqx_cth_cluster:stop_node(Core2),
?assertEqual(ok, erpc:call(Replicant, emqx_machine, open_ports_check, [])),
?retry(200, 20, begin
Results = erpc:call(Core1, emqx_machine, open_ports_check, []),
?assertMatch(
#{
@ -172,4 +173,6 @@ t_open_ports_check(Config) ->
?assertEqual(
NumPorts, map_size(emqx_utils_maps:deep_get([results, Core2, open_ports], Results))
),
ok
end),
ok.