Fix mocking here
Original commit: elastic/x-pack-elasticsearch@39903ee7b5
This commit is contained in:
parent
875e2e67c5
commit
aca4133fbd
|
@ -38,7 +38,8 @@ public class SystemKeyToolTests extends CliToolTestCase {
|
|||
public void init() throws Exception {
|
||||
terminal = mock(Terminal.class);
|
||||
env = mock(Environment.class);
|
||||
when(env.binFile().getParent()).thenReturn(createTempDir());
|
||||
Path tmpDir = createTempDir();
|
||||
when(env.binFile()).thenReturn(tmpDir.resolve("bin"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue