summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2022-10-19 22:56:11 +0200
committerHarald Musum <musum@yahooinc.com>2022-10-19 22:56:11 +0200
commit949d2498fe3ab83f8758dadf9cc0919d29a0147b (patch)
tree1b324a1f573395317e07adc7f756d85153c9bca3 /container-search/src/test/java
parentfe8b8d1f1434aa84736432ba93f3c4543e21a885 (diff)
Synchronize when accesing or changing file name
Also start counters on 0
Diffstat (limited to 'container-search/src/test/java')
-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 e07fdaf289e..bfcf3b5e3e5 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(spooler.fileNameBase.get() + "-1");
+ Path readyFile1 = readyPath.resolve(spooler.fileNameBase.get() + "-0");
waitUntilFileExists(readyFile1);
- Path readyFile2 = readyPath.resolve(spooler.fileNameBase.get() + "-2");
+ Path readyFile2 = readyPath.resolve(spooler.fileNameBase.get() + "-1");
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(spooler.fileNameBase.get() + "-1");
+ Path readyFile1 = readyPath.resolve(spooler.fileNameBase.get() + "-0");
waitUntilFileExists(readyFile1);
// Check content after being moved to ready path