rabbit_ct_client_helpers: Add a timeout to `open_channel/2`

[Why]
Exactly like in commit b165adb958, 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.
This commit is contained in:
Jean-Sébastien Pédron 2023-08-04 10:14:58 +02:00
parent 32356eef5b
commit 6c83939008
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ open_channel(Config, Node) ->
Pid ! {open_channel, self()},
receive
Ch when is_pid(Ch) -> Ch
after 60_000 ->
ct:fail("Timed out waiting for connection to open")
end.
open_connection_and_channel(Config) ->