We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60a2653 + 7756452 commit 55776e0Copy full SHA for 55776e0
src/test/java/com/rabbitmq/tools/Host.java
@@ -92,9 +92,9 @@ private static Process executeCommandProcess(String command) throws IOException
92
}
93
94
public static boolean isRabbitMqCtlCommandAvailable(String command) throws IOException {
95
- Process process = rabbitmqctl("help");
96
- String stdout = capture(process.getInputStream());
97
- return stdout.contains(command);
+ Process process = rabbitmqctlIgnoreErrors("");
+ String stderr = capture(process.getErrorStream());
+ return stderr.contains(command);
98
99
100
public static Process rabbitmqctl(String command) throws IOException {
0 commit comments