Description: solving ambiguities in the tests, when comparing an Integer and an
 int: we convert Integer to int
Author: Pierre Gruet <pgt@debian.org>
Forwarded: https://github.com/broadinstitute/http-nio/issues/8
Last-Update: 2023-12-14

--- a/src/test/java/org/broadinstitute/http/nio/RetryHandlerUnitTest.java
+++ b/src/test/java/org/broadinstitute/http/nio/RetryHandlerUnitTest.java
@@ -72,7 +72,7 @@
 
     @Test
     public void testSucessful() throws IOException {
-        Assert.assertEquals(DEFAULT_RETRY_HANDLER.runWithRetries(() -> 3), 3);
+        Assert.assertEquals(DEFAULT_RETRY_HANDLER.runWithRetries(() -> 3).intValue(), 3);
     }
 
     @Test(expectedExceptions = RuntimeException.class)
@@ -103,7 +103,7 @@
         Assert.assertEquals(DEFAULT_RETRY_HANDLER.tryOnceThenWithRetries(
                 a::incrementAndGet,
                 b::incrementAndGet
-        ), 1);
+        ).intValue(), 1);
     }
 
     @Test
@@ -113,7 +113,7 @@
         Assert.assertEquals(DEFAULT_RETRY_HANDLER.tryOnceThenWithRetries(
                 () -> { a.incrementAndGet(); throw new SocketException("I am retryable");},
                 b::incrementAndGet
-        ), 11);
+        ).intValue(), 11);
         Assert.assertEquals(a.get(), 1);
     }
 
@@ -152,7 +152,7 @@
                     }
                     return b.get();
                 }
-        ), 12);
+        ).intValue(), 12);
         Assert.assertEquals(a.get(), 1);
         Assert.assertEquals(b.get(), 12);
     }
@@ -173,7 +173,7 @@
 
     @Test
     public void test0MaxRetriesRunsOnce() throws IOException {
-        Assert.assertEquals(NO_RETRIES_HANDLER.runWithRetries(() -> 3), 3);
+        Assert.assertEquals(NO_RETRIES_HANDLER.runWithRetries(() -> 3).intValue(), 3);
     }
 
     @Test
@@ -192,4 +192,4 @@
     }
 
 
-}
\ No newline at end of file
+}
