You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2020/04/09 14:29:43 UTC
[zeppelin] branch branch-0.9 updated: [hotfix] HotFix for test
failure of StandardInterpreterLauncherTest
This is an automated email from the ASF dual-hosted git repository.
zjffdu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new f5a3f43 [hotfix] HotFix for test failure of StandardInterpreterLauncherTest
f5a3f43 is described below
commit f5a3f436add9cf8c42d921639160706f340130ee
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Thu Apr 9 15:40:42 2020 +0800
[hotfix] HotFix for test failure of StandardInterpreterLauncherTest
---
.../interpreter/launcher/StandardInterpreterLauncherTest.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/launcher/StandardInterpreterLauncherTest.java b/zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/launcher/StandardInterpreterLauncherTest.java
index 60bf915..b7d0cbf 100644
--- a/zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/launcher/StandardInterpreterLauncherTest.java
+++ b/zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/launcher/StandardInterpreterLauncherTest.java
@@ -56,8 +56,9 @@ public class StandardInterpreterLauncherTest {
assertEquals(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_CONNECT_TIMEOUT.getIntValue(),
interpreterProcess.getConnectTimeout());
assertEquals(zConf.getInterpreterRemoteRunnerPath(), interpreterProcess.getInterpreterRunner());
- assertEquals(2, interpreterProcess.getEnv().size());
+ assertTrue(interpreterProcess.getEnv().size() >= 2);
assertEquals("VALUE_1", interpreterProcess.getEnv().get("ENV_1"));
+ assertTrue(interpreterProcess.getEnv().containsKey("INTERPRETER_GROUP_ID"));
assertEquals(true, interpreterProcess.isUserImpersonated());
}
@@ -79,7 +80,8 @@ public class StandardInterpreterLauncherTest {
assertEquals(".//local-repo/groupId", interpreterProcess.getLocalRepoDir());
assertEquals(10000, interpreterProcess.getConnectTimeout());
assertEquals(zConf.getInterpreterRemoteRunnerPath(), interpreterProcess.getInterpreterRunner());
- assertEquals(1, interpreterProcess.getEnv().size());
+ assertTrue(interpreterProcess.getEnv().size() >= 1);
+ assertTrue(interpreterProcess.getEnv().containsKey("INTERPRETER_GROUP_ID"));
assertEquals(true, interpreterProcess.isUserImpersonated());
}