mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix tests
This commit is contained in:
parent
934f274082
commit
0cf514fb24
1 changed files with 2 additions and 2 deletions
|
|
@ -473,13 +473,13 @@ public class InterpreterFactoryTest {
|
|||
InterpreterRunner mockInterpreterRunner = mock(InterpreterRunner.class);
|
||||
String testInterpreterRunner = "relativePath.sh";
|
||||
when(mockInterpreterRunner.getPath()).thenReturn(testInterpreterRunner); // This test only for Linux
|
||||
Interpreter i = factory.createRemoteRepl("path1", "sessionKey", "className", new Properties(), "settingId", "userName", false, mockInterpreterRunner);
|
||||
Interpreter i = factory.createRemoteRepl("path1", "sessionKey", "className", new Properties(), interpreterSettingManager.get().get(0).getId(), "userName", false, mockInterpreterRunner);
|
||||
String interpreterRunner = ((RemoteInterpreter) ((LazyOpenInterpreter) i).getInnerInterpreter()).getInterpreterRunner();
|
||||
assertNotEquals(interpreterRunner, testInterpreterRunner);
|
||||
|
||||
testInterpreterRunner = "/AbsolutePath.sh";
|
||||
when(mockInterpreterRunner.getPath()).thenReturn(testInterpreterRunner);
|
||||
i = factory.createRemoteRepl("path1", "sessionKey", "className", new Properties(), "settingId", "userName", false, mockInterpreterRunner);
|
||||
i = factory.createRemoteRepl("path1", "sessionKey", "className", new Properties(), interpreterSettingManager.get().get(0).getId(), "userName", false, mockInterpreterRunner);
|
||||
interpreterRunner = ((RemoteInterpreter) ((LazyOpenInterpreter) i).getInnerInterpreter()).getInterpreterRunner();
|
||||
assertEquals(interpreterRunner, testInterpreterRunner);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue