test: fix flaky test

This commit is contained in:
Thales Macedo Garitezi 2023-02-15 10:14:58 -03:00
parent 51a0b93868
commit 5ab5236ad3
1 changed files with 2 additions and 2 deletions

View File

@ -1105,13 +1105,13 @@ do_econnrefused_or_timeout_test(Config, Error) ->
?assertMatch(
#{
dropped := Dropped,
failed := 0,
failed := Failed,
inflight := Inflight,
matched := Matched,
queuing := Queueing,
retried := 0,
success := 0
} when Matched >= 1 andalso Inflight + Queueing + Dropped =< 2,
} when Matched >= 1 andalso Inflight + Queueing + Dropped + Failed =< 2,
CurrentMetrics
);
{timeout, async} ->