From 0f28d4759779dc50b193d5724e95f87d3f281909 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Mon, 26 Aug 2024 11:52:55 +0200 Subject: [PATCH] Fixed assertion mismatch between int and long. Signed-off-by: Simone Bordet --- .../org/eclipse/jetty/server/handler/QoSHandlerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/handler/QoSHandlerTest.java b/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/handler/QoSHandlerTest.java index 76f67fd2095..88544658be6 100644 --- a/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/handler/QoSHandlerTest.java +++ b/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/handler/QoSHandlerTest.java @@ -115,7 +115,7 @@ public class QoSHandlerTest endPoints.add(endPoint); assertEquals(maxRequests, callbacks.size()); - await().atMost(5, TimeUnit.SECONDS).until(qosHandler::getSuspendedRequestCount, is(1L)); + await().atMost(5, TimeUnit.SECONDS).until(qosHandler::getSuspendedRequestCount, is(1)); // Finish and verify the waiting requests. List copy = List.copyOf(callbacks); @@ -130,7 +130,7 @@ public class QoSHandlerTest } // The suspended request should have been resumed. - await().atMost(5, TimeUnit.SECONDS).until(qosHandler::getSuspendedRequestCount, is(0L)); + await().atMost(5, TimeUnit.SECONDS).until(qosHandler::getSuspendedRequestCount, is(0)); await().atMost(5, TimeUnit.SECONDS).until(callbacks::size, is(1)); // Finish the resumed request that is now waiting. @@ -175,11 +175,11 @@ public class QoSHandlerTest Host: localhost """); - await().atMost(5, TimeUnit.SECONDS).until(qosHandler::getSuspendedRequestCount, is(1L)); + await().atMost(5, TimeUnit.SECONDS).until(qosHandler::getSuspendedRequestCount, is(1)); // Do not succeed the callback of the first request. // Wait for the second request to time out. - await().atMost(2 * timeout, TimeUnit.MILLISECONDS).until(qosHandler::getSuspendedRequestCount, is(0L)); + await().atMost(2 * timeout, TimeUnit.MILLISECONDS).until(qosHandler::getSuspendedRequestCount, is(0)); String text = endPoint1.getResponse(false, 5, TimeUnit.SECONDS); HttpTester.Response response = HttpTester.parseResponse(text);