Skip to content

Commit d9e1ded

Browse files
Artem LabazinArtem Labazin
authored andcommitted
Fix tests
1 parent b0216d4 commit d9e1ded

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

client/src/test/java/io/appulse/epmd/java/client/util/LocalEpmdHelper.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,17 @@
2525

2626
import lombok.SneakyThrows;
2727
import lombok.val;
28-
import lombok.extern.slf4j.Slf4j;
2928

3029
/**
3130
*
3231
* @author Artem Labazin
3332
* @since 0.2.1
3433
*/
35-
@Slf4j
3634
public final class LocalEpmdHelper {
3735

3836
@SneakyThrows
3937
public static boolean exists () {
40-
val builder = new ProcessBuilder("which", "epmd");
38+
val builder = new ProcessBuilder("epmd", "--help");
4139
Process process;
4240
try {
4341
process = builder.start();
@@ -48,7 +46,7 @@ public static boolean exists () {
4846
process.destroy();
4947
return false;
5048
}
51-
return process.exitValue() == 0;
49+
return process.exitValue() != 127;
5250
}
5351

5452
@SneakyThrows

0 commit comments

Comments
 (0)