test: fix flaky test

This commit is contained in:
Thales Macedo Garitezi 2024-07-24 10:28:11 -03:00
parent 76e51fa532
commit 79db2e6d7f
1 changed files with 21 additions and 17 deletions

View File

@ -303,6 +303,9 @@ t_crud(_Config) ->
t_status(Config) -> t_status(Config) ->
[SN1 | _] = ?config(source_nodes, Config), [SN1 | _] = ?config(source_nodes, Config),
Name = <<"cl.target">>, Name = <<"cl.target">>,
?retry(
100,
10,
?assertMatch( ?assertMatch(
{200, [ {200, [
#{ #{
@ -320,6 +323,7 @@ t_status(Config) ->
} }
]}, ]},
list() list()
)
), ),
?assertMatch( ?assertMatch(
{200, #{ {200, #{