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.
1 parent d0f077f commit 7756452Copy full SHA for 7756452
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