From 4379300e108e079bcf168a6cf62dc466909f054f Mon Sep 17 00:00:00 2001 From: Rafael Vasquez Date: Wed, 1 Nov 2023 12:06:27 -0400 Subject: [PATCH] Fixes command args Signed-off-by: Rafael Vasquez --- .../java/com/ibm/watson/modelmesh/ModelMeshTearDownTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/com/ibm/watson/modelmesh/ModelMeshTearDownTest.java b/src/test/java/com/ibm/watson/modelmesh/ModelMeshTearDownTest.java index 4b2c7f01..d50aa72c 100644 --- a/src/test/java/com/ibm/watson/modelmesh/ModelMeshTearDownTest.java +++ b/src/test/java/com/ibm/watson/modelmesh/ModelMeshTearDownTest.java @@ -316,7 +316,6 @@ public static int getPID(Process process) throws Exception { public static int killProcess(Process process) throws Exception { String pid = Integer.toString(getPID(process)); - String command = "kill -9"; - return Runtime.getRuntime().exec(new String[] {command, pid}).waitFor(); + return Runtime.getRuntime().exec(new String[] {"kill", "-9", pid}).waitFor(); } }