399132 check parent dir of session store against file to be removed
This commit is contained in:
parent
2cbb630f8e
commit
497acc8555
|
@ -21,6 +21,7 @@ package org.eclipse.jetty.server.session;
|
|||
import java.io.File;
|
||||
|
||||
import org.eclipse.jetty.server.SessionManager;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class SessionRenewTest extends AbstractSessionRenewTest
|
||||
|
@ -40,7 +41,14 @@ public class SessionRenewTest extends AbstractSessionRenewTest
|
|||
File tmpDir = new File(System.getProperty("java.io.tmpdir"), "hash-session-renew-test");
|
||||
tmpDir.deleteOnExit();
|
||||
tmpDir.mkdirs();
|
||||
try
|
||||
{
|
||||
sessionManager.setStoreDirectory(tmpDir);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
return sessionManager;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue