* Note: shamelessly cloned from ManagerBase - beware of synch issues
* on the underlying sessions.
*/
private void doImminentSessionTimeout(Context activeContext) {
ManagerBase manager = (ManagerBase) activeContext.getManager();
Session[] sessions = manager.findSessions();
for (int i = 0; i < sessions.length; i++) {
if (sessions[i]!=null && sessions[i].isValid()) {
sessions[i].setMaxInactiveInterval(EXTRA_DELAY_SECS);
// leave it to be expired by the manager
}
}
try {
Thread.sleep(REASONABLE_MSECS_TO_EXPIRY);
} catch (InterruptedException ie) {
// ignored
}
// paranoid verification that active sessions have now gone
sessions = manager.findSessions();
assertTrue(sessions.length == 0);
}