summaryrefslogtreecommitdiffstats
path: root/container-search/src/test
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2022-10-19 17:52:51 +0200
committerHarald Musum <musum@yahooinc.com>2022-10-19 17:52:51 +0200
commit615adf0f25c794237bea04cca186ea29d9ac02ac (patch)
treead2909511249ba8d508b0b9e16ca65d7beb67126 /container-search/src/test
parent71922a7b3329fc90cd0f1a51568680758c7dc72a (diff)
Make sure to use unique file names
Diffstat (limited to 'container-search/src/test')
-rw-r--r--container-search/src/test/java/com/yahoo/search/logging/SpoolerTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/logging/SpoolerTest.java b/container-search/src/test/java/com/yahoo/search/logging/SpoolerTest.java
index b6a1ebc4b55..e07fdaf289e 100644
--- a/container-search/src/test/java/com/yahoo/search/logging/SpoolerTest.java
+++ b/container-search/src/test/java/com/yahoo/search/logging/SpoolerTest.java
@@ -35,9 +35,9 @@ public class SpoolerTest {
assertTrue(sendEntry(logger, "Yo entry 2"));
Path readyPath = spooler.readyPath();
- Path readyFile1 = readyPath.resolve("1");
+ Path readyFile1 = readyPath.resolve(spooler.fileNameBase.get() + "-1");
waitUntilFileExists(readyFile1);
- Path readyFile2 = readyPath.resolve("2");
+ Path readyFile2 = readyPath.resolve(spooler.fileNameBase.get() + "-2");
waitUntilFileExists(readyFile2);
// Check content after being moved to ready path
@@ -67,7 +67,7 @@ public class SpoolerTest {
assertTrue(sendEntry(logger, "Yo entry 2"));
Path readyPath = spooler.readyPath();
- Path readyFile1 = readyPath.resolve("1");
+ Path readyFile1 = readyPath.resolve(spooler.fileNameBase.get() + "-1");
waitUntilFileExists(readyFile1);
// Check content after being moved to ready path