From ecdf9821ef6936b980a62693e89d250f548aed71 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 27 May 2022 15:16:47 -0500 Subject: [PATCH] [UNDERTOW-1593] Add ActiveRequestTrackingHandler --- .../io/undertow/server/handlers/ActiveRequestTrackerTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/test/java/io/undertow/server/handlers/ActiveRequestTrackerTest.java b/core/src/test/java/io/undertow/server/handlers/ActiveRequestTrackerTest.java index 7cce4c1004..366c2cc396 100644 --- a/core/src/test/java/io/undertow/server/handlers/ActiveRequestTrackerTest.java +++ b/core/src/test/java/io/undertow/server/handlers/ActiveRequestTrackerTest.java @@ -48,10 +48,8 @@ public void testRequestTracking() throws InterruptedException { t.start(); List trackedRequests = handler.getTrackedRequests(); + int attempts = 0; - // This test is somewhat time-sensitive in that an in-flight request is needed to verify that the handler - // is correctly tracking and returning active requests. To that end, the test submits a request in a - // Thread (above) to let the request be made in a background thread while the main thread attempts to // get the active request information. The delay handler waits for termination via latch and // meanwhile this thread tries to retrieve the request statistics. There is a max waiting time of 5 seconds. try {