From e4ca170f1d8240d7aa42d6344175b7e90c2fe94e Mon Sep 17 00:00:00 2001 From: lindenb Date: Tue, 29 Oct 2024 14:53:52 +0100 Subject: [PATCH] fix unit test --- .../htsjdk/variant/variantcontext/writer/VCFWriterUnitTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/htsjdk/variant/variantcontext/writer/VCFWriterUnitTest.java b/src/test/java/htsjdk/variant/variantcontext/writer/VCFWriterUnitTest.java index 0c2218408d..d6bfb5a9a9 100644 --- a/src/test/java/htsjdk/variant/variantcontext/writer/VCFWriterUnitTest.java +++ b/src/test/java/htsjdk/variant/variantcontext/writer/VCFWriterUnitTest.java @@ -159,7 +159,7 @@ public void testWriteAndReadVCFHeaderless(final String extension) throws IOExcep try (BlockCompressedInputStream bcis = new BlockCompressedInputStream(fakeVCFFile); FileInputStream fis = new FileInputStream(fakeVCFFile)) { AsciiLineReaderIterator iterator = - new AsciiLineReaderIterator(new AsciiLineReader(".vcf.gz".equals(extension) ? bcis : fis)); + new AsciiLineReaderIterator(new AsciiLineReader(FileExtensions.COMPRESSED_VCF.equals(extension) || FileExtensions.COMPRESSED_VCF_BGZ.equals(extension) ? bcis : fis)); int counter = 0; while (iterator.hasNext()) { VariantContext context = codec.decode(iterator.next());