Skip to content

Commit 184e2e9

Browse files
Merge pull request #2159 from rabbitmq/rabbitmq-server-2158
Take infinity timeout into account (cherry picked from commit 2b3c42e)
1 parent d75eb86 commit 184e2e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rabbit.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,10 @@ await_startup(Node, PrintProgressReports, Timeout) ->
760760
wait_for_boot_to_start(Node) ->
761761
wait_for_boot_to_start(Node, ?BOOT_START_TIMEOUT).
762762

763+
wait_for_boot_to_start(Node, infinity) ->
764+
%% This assumes that 100K iterations is close enough to "infinity".
765+
%% Now that's deep.
766+
do_wait_for_boot_to_start(Node, 100000);
763767
wait_for_boot_to_start(Node, Timeout) ->
764768
Iterations = Timeout div ?BOOT_STATUS_CHECK_INTERVAL,
765769
do_wait_for_boot_to_start(Node, Iterations).

0 commit comments

Comments
 (0)