diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-09-14 15:30:58 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-09-14 15:30:58 +0200 |
commit | 7b1bc4fbf356383e18c756842df9307643a66dbd (patch) | |
tree | f94ca8f922ef23fda44aab648f1bef678a7200bc /node-admin | |
parent | 7e2d35b6f20092e0ceddc48099fb8e88a79f0d87 (diff) |
Simplify
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImplTest.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImplTest.java b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImplTest.java index 47528a56048..3b512130608 100644 --- a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImplTest.java +++ b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImplTest.java @@ -38,14 +38,12 @@ class VespaServiceDumperImplTest { private static final String HOSTNAME = "host-1.domain.tld"; - private Path tmpDirectory; - private FileSystem fileSystem; + private final FileSystem fileSystem = TestFileSystem.create();; + private final Path tmpDirectory = fileSystem.getPath("/home/docker/container-storage/host-1/opt/vespa/tmp"); @BeforeEach - void create_test_file_system() throws IOException { + void create_tmp_directory() throws IOException { // Create temporary directory in container - fileSystem = TestFileSystem.create(); - tmpDirectory = fileSystem.getPath("/home/docker/container-storage/host-1/opt/vespa/tmp"); Files.createDirectories(tmpDirectory); } |