Issue #6085 Fix duplicate valid session cookies to pick first valid.

Fixed typo and stopping server & client in testMulitpleIdenticalSessionCookies().

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2021-03-25 12:06:47 +01:00
parent 64006c61c6
commit f6afdc5b01
1 changed files with 6 additions and 1 deletions

View File

@ -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