From 866e2b99ba2d13e175207ac837dcd386bcf23736 Mon Sep 17 00:00:00 2001 From: Brad Cupit Date: Fri, 20 Feb 2009 14:10:04 +0000 Subject: [PATCH] NOJIRA sleep long enough for the ticket to timeout --- .../cas/client/proxy/ProxyGrantingTicketStorageImplTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cas-client-core/src/test/java/org/jasig/cas/client/proxy/ProxyGrantingTicketStorageImplTest.java b/cas-client-core/src/test/java/org/jasig/cas/client/proxy/ProxyGrantingTicketStorageImplTest.java index 7eb2565..6555a7e 100644 --- a/cas-client-core/src/test/java/org/jasig/cas/client/proxy/ProxyGrantingTicketStorageImplTest.java +++ b/cas-client-core/src/test/java/org/jasig/cas/client/proxy/ProxyGrantingTicketStorageImplTest.java @@ -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();