Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions deps/rabbitmq_ct_helpers/src/rabbit_ct_helpers.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1130,16 +1130,12 @@ await_condition(ConditionFun, Timeout) ->
await_condition_with_retries(_ConditionFun, 0) ->
ct:fail("Condition did not materialize in the expected period of time");
await_condition_with_retries(ConditionFun, RetriesLeft) ->
try ConditionFun() of
case ConditionFun() of
false ->
timer:sleep(50),
await_condition_with_retries(ConditionFun, RetriesLeft - 1);
true ->
ok
catch
_:_ ->
timer:sleep(50),
await_condition_with_retries(ConditionFun, RetriesLeft - 1)
end.

%% Pass in any EUnit test object. Example:
Expand Down
Loading