This is an automated email from the ASF dual-hosted git repository. pdallig pushed a commit to branch test_refactoring in repository https://gitbox.apache.org/repos/asf/zeppelin.git
commit 72859c356a2ff4d16c5ed24f299636e7ca0cec49 Author: Philipp Dallig <[email protected]> AuthorDate: Thu Aug 27 13:53:08 2020 +0200 The String "command not found" and "No such file or directory" depends on your JVM language. --- .../apache/zeppelin/interpreter/remote/RemoteInterpreterTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterTest.java b/zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterTest.java index da6a251..c31eb55 100644 --- a/zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterTest.java +++ b/zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterTest.java @@ -54,6 +54,7 @@ public class RemoteInterpreterTest extends AbstractInterpreterTest { private InterpreterSetting interpreterSetting; + @Override @Before public void setUp() throws Exception { super.setUp(); @@ -402,7 +403,7 @@ public class RemoteInterpreterTest extends AbstractInterpreterTest { interpreter1.interpret("1", context1); fail("Should not be able to launch interpreter process"); } catch (InterpreterException e) { - assertTrue(ExceptionUtils.getStackTrace(e).contains("No such file or directory")); + assertTrue(ExceptionUtils.getStackTrace(e).contains("java.io.IOException")); } } finally { System.clearProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_REMOTE_RUNNER.getVarName()); @@ -422,7 +423,8 @@ public class RemoteInterpreterTest extends AbstractInterpreterTest { interpreter1.interpret("1", context1); fail("Should not be able to launch interpreter process"); } catch (InterpreterException e) { - assertTrue(ExceptionUtils.getStackTrace(e).contains("invalid_command: command not found")); + System.out.println(e); + assertTrue(ExceptionUtils.getStackTrace(e).contains("invalid_command:")); } } finally { System.clearProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_REMOTE_RUNNER.getVarName());
