Skip to content

Commit 7c8c3d9

Browse files
committed
Changed expected exit code on kill for Windows
1 parent 8fe573a commit 7c8c3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/runner/java/com/senzing/runner/SnippetRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ private static void executeSnippet(String snippet,
336336
long delay = Long.parseLong(propValue);
337337
boolean exited = process.waitFor(delay, TimeUnit.MILLISECONDS);
338338
if (!exited && process.isAlive()) {
339-
expectedExitValue = SIGTERM_EXIT_CODE;
339+
expectedExitValue = (WINDOWS) ? 1 : SIGTERM_EXIT_CODE;
340340
System.out.println();
341341
System.out.println("Runner destroying " + snippet + " process...");
342342
// NOTE: using process.destroy() does not trigger the registered

0 commit comments

Comments
 (0)