From f6afdc5b01af35ed6e9a1724a574ab23c26f9909 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Thu, 25 Mar 2021 12:06:47 +0100 Subject: [PATCH] Issue #6085 Fix duplicate valid session cookies to pick first valid. Fixed typo and stopping server & client in testMulitpleIdenticalSessionCookies(). Signed-off-by: Simone Bordet --- .../eclipse/jetty/server/session/DuplicateCookieTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test-sessions/test-sessions-common/src/test/java/org/eclipse/jetty/server/session/DuplicateCookieTest.java b/tests/test-sessions/test-sessions-common/src/test/java/org/eclipse/jetty/server/session/DuplicateCookieTest.java index 010e966a610..9eb6f39c1b8 100644 --- a/tests/test-sessions/test-sessions-common/src/test/java/org/eclipse/jetty/server/session/DuplicateCookieTest.java +++ b/tests/test-sessions/test-sessions-common/src/test/java/org/eclipse/jetty/server/session/DuplicateCookieTest.java @@ -324,7 +324,7 @@ public class DuplicateCookieTest } @Test - public void testMulitpleIdenticalSessionCookies() throws Exception + public void testMultipleIdenticalSessionCookies() throws Exception { String contextPath = ""; String servletMapping = "/server"; @@ -364,6 +364,11 @@ public class DuplicateCookieTest //check that all valid sessions have their request counts decremented correctly after the request, back to 0 assertEquals(0, s1234.getRequests()); } + finally + { + server1.stop(); + client.stop(); + } } public Session createUnExpiredSession(SessionCache cache, SessionDataStore store, String id) throws Exception