Merge pull request #13318 from thalesmg/test-flaky-gcp-consu-r57-20240621

test(gcp consumer): stabilize flaky test
This commit is contained in:
Thales Macedo Garitezi 2024-06-25 11:52:20 -03:00 committed by GitHub
commit cc89a20ed9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -1448,7 +1448,10 @@ t_connection_down_before_starting(Config) ->
), ),
{ok, _} = create_bridge(Config), {ok, _} = create_bridge(Config),
{ok, _} = snabbkaffe:receive_events(SRef0), {ok, _} = snabbkaffe:receive_events(SRef0),
?assertMatch({ok, connecting}, health_check(Config)), ?assertMatch(
{ok, Status} when Status =:= connecting orelse Status =:= disconnected,
health_check(Config)
),
emqx_common_test_helpers:heal_failure(down, ProxyName, ProxyHost, ProxyPort), emqx_common_test_helpers:heal_failure(down, ProxyName, ProxyHost, ProxyPort),
?retry( ?retry(