Issue #2267 Added extra asserts to o.e.j.s.session.CreationTest

This commit is contained in:
Jan Bartel 2018-03-06 10:17:11 +11:00
parent 076f3a8ab2
commit 1ecf774912
2 changed files with 3 additions and 4 deletions

View File

@ -19,7 +19,6 @@
package org.eclipse.jetty.server.session;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
@ -102,8 +101,6 @@ public class TestSessionDataStore extends AbstractSessionDataStore
set.add(d.getId());
}
return set;
//return Collections.emptySet();
}
}

View File

@ -265,7 +265,7 @@ public class CreationTest
assertEquals(HttpServletResponse.SC_OK,response.getStatus());
//ensure work has finished on the server side
_synchronizer.await();
_synchronizer.await(2*inactivePeriod, TimeUnit.SECONDS);
//check that the sessions exist persisted
assertTrue(contextHandler.getSessionHandler().getSessionCache().getSessionDataStore().exists(_servlet._id));
@ -370,6 +370,8 @@ public class CreationTest
{
session = request.getSession(false);
assertNotNull(session);
assertEquals(_id, session.getId());
assertNotNull(session.getAttribute("value"));
assertNull(session.getAttribute("B")); //check we don't see stuff from other context
}