Skip to content

Commit c7901f2

Browse files
committed
Debug test
1 parent d7204e0 commit c7901f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/engineering/swat/watch/SingleDirectoryTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ void indexingRescanOnOverflow() throws IOException, InterruptedException {
174174
.onOverflow(Approximation.DIFF)
175175
.on(bookkeeper);
176176

177+
Thread.sleep(TestHelper.NORMAL_WAIT.toMillis());
177178
try (var watch = watchConfig.start()) {
178-
Thread.sleep(TestHelper.NORMAL_WAIT.toMillis());
179179

180180
// Begin overflow simulation
181181
dropEvents.set(true);
182182

183-
// Do some file operations. No events should be observed (because
184-
// the overflow simulation is running).
183+
// Perform some file operations. No events should be observed
184+
// (because the overflow simulation is running).
185185
Files.writeString(directory.resolve("a.txt"), "foo");
186186
Files.writeString(directory.resolve("b.txt"), "bar");
187187
Files.delete(directory.resolve("c.txt"));
@@ -207,7 +207,7 @@ void indexingRescanOnOverflow() throws IOException, InterruptedException {
207207
.until(() -> bookkeeper.events().any(e));
208208
}
209209

210-
// Do some more file operations. All events should be observed
210+
// Perform some more file operations. All events should be observed
211211
// (because the overflow simulation is no longer running).
212212
bookkeeper.reset();
213213
Files.writeString(directory.resolve("b.txt"), "baz");

0 commit comments

Comments
 (0)