Merge pull request #12221 from thalesmg/test-flaky-retry-m-20231222

test: reduce flakiness
This commit is contained in:
zhongwencool 2023-12-27 14:30:25 +08:00 committed by GitHub
commit 711a9a06c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1553,7 +1553,11 @@ t_get_status_timeout_calling_workers(Config) ->
end
end,
fun() ->
?assertEqual({ok, disconnected}, emqx_resource_manager:health_check(ResourceId)),
?retry(
_Sleep0 = 100,
_Attempts0 = 20,
?assertEqual({ok, disconnected}, emqx_resource_manager:health_check(ResourceId))
),
ok
end
),