Skip to content

Commit

Permalink
Undo change to TestDeleteQueueFile#tailerToEndFromEndWorksInFaceOfDel…
Browse files Browse the repository at this point in the history
…etedStoreFile #1151
  • Loading branch information
nicktindall committed Jun 21, 2023
1 parent 3f12796 commit d488158
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ public void tailerToEndWorksInFaceOfDeletedStoreFile() throws IOException {
}
}

@Ignore("https://github.com/OpenHFT/Chronicle-Queue/issues/1151")
@Test
public void tailerToEndFromEndWorksInFaceOfDeletedStoreFile() throws IOException {
assumeFalse(OS.isWindows());

try (QueueWithCycleDetails queueWithCycleDetails = createQueueWithNRollCycles(3, builder -> builder.forceDirectoryListingRefreshIntervalMs(250))) {
try (QueueWithCycleDetails queueWithCycleDetails = createQueueWithNRollCycles(3, null)) {

final SingleChronicleQueue queue = queueWithCycleDetails.queue;
RollCycleDetails firstCycle = queueWithCycleDetails.rollCycles.get(0);
Expand All @@ -172,9 +173,6 @@ public void tailerToEndFromEndWorksInFaceOfDeletedStoreFile() throws IOException
// delete the last store
Files.delete(Paths.get(thirdCycle.filename));

// wait for cache to expire
Jvm.pause(260);

// should be at correct index
assertEquals(Long.toHexString(secondCycle.lastIndex + 1), Long.toHexString(tailer.toEnd().index()));
}
Expand Down

0 comments on commit d488158

Please sign in to comment.