sleep long enough for the ticket to timeout
This commit is contained in:
Brad Cupit 2009-02-20 14:10:04 +00:00
parent 5761e0cb61
commit 866e2b99ba
1 changed files with 3 additions and 2 deletions

View File

@ -11,11 +11,12 @@ public class ProxyGrantingTicketStorageImplTest extends TestCase {
public void testCleanUp() throws Exception {
String proxyGrantingTicketIou = "proxyGrantingTicketIou";
int timeout = 100;
int timeout = 250;
ProxyGrantingTicketStorageImpl storage = new ProxyGrantingTicketStorageImpl(timeout);
storage.save(proxyGrantingTicketIou, "proxyGrantingTicket");
Thread.sleep(timeout + 1);
// sleep long enough for the ticket to timeout
Thread.sleep(timeout * 2);
storage.cleanUp();