Skip to content

Commit dc32d1f

Browse files
author
Alexandru Scvortov
committed
merge bug24354 into default (test_refresh_events/1 sometimes fails)
2 parents 2c3616f + 0ba936f commit dc32d1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rabbit_tests.erl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,11 @@ expect_events(Pid, Type) ->
14711471
expect_event(Pid, Type).
14721472

14731473
expect_event(Pid, Type) ->
1474-
receive #event{type = Type, props = Props} -> Pid = pget(pid, Props)
1474+
receive #event{type = Type, props = Props} ->
1475+
case pget(pid, Props) of
1476+
Pid -> ok;
1477+
_ -> expect_event(Pid, Type)
1478+
end
14751479
after 1000 -> throw({failed_to_receive_event, Type})
14761480
end.
14771481

0 commit comments

Comments
 (0)