Skip to content

Commit 6c83939

Browse files
committed
rabbit_ct_client_helpers: Add a timeout to open_channel/2
[Why] Exactly like in commit b165adb, we don't need to wait indefinitely for a channel to open. If it lasts, there is a problem. There is probably a weakness/bug in that basic channels manager that would explain those indefinite operations though.
1 parent 32356ee commit 6c83939

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbitmq_ct_client_helpers/src/rabbit_ct_client_helpers.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ open_channel(Config, Node) ->
217217
Pid ! {open_channel, self()},
218218
receive
219219
Ch when is_pid(Ch) -> Ch
220+
after 60_000 ->
221+
ct:fail("Timed out waiting for connection to open")
220222
end.
221223

222224
open_connection_and_channel(Config) ->

0 commit comments

Comments
 (0)