Skip to content

Commit

Permalink
Mute DLQ test on Windows (#15843) (#15845)
Browse files Browse the repository at this point in the history
This commit mutes the DLQ test:
`testDLQWriterFlusherRemovesExpiredSegmentWhenCurrentHeadSegmentIsEmpty`
when running on Windows.

Closes #15768

(cherry picked from commit c33afd4)

Co-authored-by: Dimitrios Liappis <[email protected]>
  • Loading branch information
github-actions[bot] and dliappis authored Jan 24, 2024
1 parent 19c39f8 commit 60b604f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeThat;
import static org.logstash.common.io.DeadLetterQueueTestUtils.FULL_SEGMENT_FILE_SIZE;
import static org.logstash.common.io.DeadLetterQueueTestUtils.GB;
import static org.logstash.common.io.DeadLetterQueueTestUtils.MB;
Expand Down Expand Up @@ -334,8 +335,15 @@ public void testDLQWriterFlusherRemovesExpiredSegmentWhenCurrentWriterIsStale()
}
}

private static boolean isWindows() {
return System.getProperty("os.name").startsWith("Windows");
}

@Test
public void testDLQWriterFlusherRemovesExpiredSegmentWhenCurrentHeadSegmentIsEmpty() throws IOException {
// https://github.com/elastic/logstash/issues/15768
assumeThat(isWindows(), is(not(true)));

final Event event = DeadLetterQueueReaderTest.createEventWithConstantSerializationOverhead(
Collections.singletonMap("message", "Not so important content"));

Expand Down

0 comments on commit 60b604f

Please sign in to comment.