Skip to content

Commit 1350d78

Browse files
committed
Fix start_app in test
(cherry picked from commit a0946ae)
1 parent 161577d commit 1350d78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/rabbitmq/tools/Host.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static Process invokeMakeTarget(String command) throws IOException {
133133

134134
public static void startRabbitOnNode() throws IOException {
135135
rabbitmqctl("start_app");
136-
tryConnectFor(10 * 000);
136+
tryConnectFor(10 * 1000);
137137
}
138138

139139
public static void stopRabbitOnNode() throws IOException {
@@ -154,6 +154,7 @@ public static void tryConnectFor(int timeoutInMs) throws IOException {
154154
Connection c = null;
155155
try {
156156
c = connectionFactory.newConnection();
157+
return;
157158
} catch (Exception e) {
158159
// retrying
159160
} finally {

0 commit comments

Comments
 (0)