Commit bcb2717f authored by Andreas Tille's avatar Andreas Tille
Browse files

Skip test requiring http connection

parent 70f38e34
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
htsjdk (2.16.1+dfsg-1) UNRELEASED; urgency=medium

  [ Andreas Tille ]
  * New upstream version
  * debhelper 11
  * Standards-Version: 4.2.1
  * Skip test requiring http connection

  [ Olivier Sallou ]
  * Skip test requiring ftp connection

 -- Andreas Tille <tille@debian.org>  Mon, 17 Sep 2018 16:01:03 +0200
 -- Andreas Tille <tille@debian.org>  Tue, 18 Sep 2018 11:00:54 +0200

htsjdk (2.14.3+dfsg-3) unstable; urgency=medium

+35 −0
Original line number Diff line number Diff line
Author: Andreas Tille <tille@debian.org>
Date:   Wed Sep 18 14:28:01 2018 +0200
Description: Skip test requiring http connection

--- a/src/test/java/htsjdk/samtools/util/BlockCompressedInputStreamTest.java
+++ b/src/test/java/htsjdk/samtools/util/BlockCompressedInputStreamTest.java
@@ -149,28 +149,6 @@ public class BlockCompressedInputStreamT
         return linesWritten;
     }
 
-    @DataProvider(name = "customInflaterInput")
-    public Object[][] customInflateInput() throws IOException {
-        final File tempFile = File.createTempFile("testCustomInflater.", ".bam");
-        tempFile.deleteOnExit();
-        final List<String> linesWritten = writeTempBlockCompressedFileForInflaterTest(tempFile);
-
-        final InflaterFactory countingInflaterFactory = new CountingInflaterFactory();
-
-        return new Object[][]{
-                // set the default InflaterFactory to a CountingInflaterFactory
-                {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(new FileInputStream(tempFile), false), linesWritten, 4, countingInflaterFactory},
-                {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(tempFile), linesWritten, 4, countingInflaterFactory},
-                {(CheckedExceptionInputStreamSupplier) () -> new AsyncBlockCompressedInputStream(tempFile), linesWritten, 4, countingInflaterFactory},
-                {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(new URL("http://broadinstitute.github.io/picard/testdata/index_test.bam")), null, 21, countingInflaterFactory},
-                // provide a CountingInflaterFactory explicitly
-                {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(new FileInputStream(tempFile), false, countingInflaterFactory), linesWritten, 4, null},
-                {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(tempFile, countingInflaterFactory), linesWritten, 4, null},
-                {(CheckedExceptionInputStreamSupplier) () -> new AsyncBlockCompressedInputStream(tempFile, countingInflaterFactory), linesWritten, 4, null},
-                {(CheckedExceptionInputStreamSupplier) () -> new BlockCompressedInputStream(new URL("http://broadinstitute.github.io/picard/testdata/index_test.bam"), countingInflaterFactory), null, 21, null}
-        };
-    }
-
     @Test(dataProvider = "customInflaterInput", singleThreaded = true)
     public void testCustomInflater(final CheckedExceptionInputStreamSupplier bcisSupplier,
                                    final List<String> expectedOutput,
+1 −0
Original line number Diff line number Diff line
@@ -8,3 +8,4 @@
70-removesometests-testng.patch
80-2to3.patch
90-disable-testftp.patch
92-disable-testhttp.patch