Skip to content

Commit

Permalink
Issue #6085 Fix duplicate valid session cookies to pick first valid.
Browse files Browse the repository at this point in the history
Fixed typo and stopping server & client in testMulitpleIdenticalSessionCookies().

Signed-off-by: Simone Bordet <[email protected]>
  • Loading branch information
sbordet committed Mar 25, 2021
1 parent 64006c6 commit f6afdc5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public void testMultipleSessionCookiesMultipleExists() throws Exception
}

@Test
public void testMulitpleIdenticalSessionCookies() throws Exception
public void testMultipleIdenticalSessionCookies() throws Exception
{
String contextPath = "";
String servletMapping = "/server";
Expand Down Expand Up @@ -364,6 +364,11 @@ public void testMulitpleIdenticalSessionCookies() throws Exception
//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
Expand Down

0 comments on commit f6afdc5

Please sign in to comment.