Minor fix for testcase.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 31 Mar 2005 17:23:16 +0000 (17:23 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 31 Mar 2005 17:23:16 +0000 (17:23 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1357 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

tests/edu/internet2/middleware/shibboleth/hs/provider/NameMapperTests.java

index 6661285..b0898a0 100644 (file)
@@ -63,14 +63,14 @@ public class NameMapperTests extends TestCase {
                super(name);
                BasicConfigurator.resetConfiguration();
                BasicConfigurator.configure();
                super(name);
                BasicConfigurator.resetConfiguration();
                BasicConfigurator.configure();
-               Logger.getRootLogger().setLevel(Level.DEBUG);
+               Logger.getRootLogger().setLevel(Level.OFF);
        }
 
        public static void main(String[] args) {
 
                junit.textui.TestRunner.run(NameMapperTests.class);
                BasicConfigurator.configure();
        }
 
        public static void main(String[] args) {
 
                junit.textui.TestRunner.run(NameMapperTests.class);
                BasicConfigurator.configure();
-               Logger.getRootLogger().setLevel(Level.DEBUG);
+               Logger.getRootLogger().setLevel(Level.OFF);
        }
 
        protected void setUp() throws Exception {
        }
 
        protected void setUp() throws Exception {
@@ -142,7 +142,7 @@ public class NameMapperTests extends TestCase {
                                        "testprincipal"), new BasicServiceProvider(), new BasicIdentityProvider("urn-x:testid"));
 
                        log.debug("Waiting 11 seconds for the handle to expire.");
                                        "testprincipal"), new BasicServiceProvider(), new BasicIdentityProvider("urn-x:testid"));
 
                        log.debug("Waiting 11 seconds for the handle to expire.");
-                       Thread.sleep(22000);
+                       Thread.sleep(11000);
 
                        AuthNPrincipal principal = nameMapper.getPrincipal(nameId, new BasicServiceProvider(),
                                        new BasicIdentityProvider("urn-x:testid"));
 
                        AuthNPrincipal principal = nameMapper.getPrincipal(nameId, new BasicServiceProvider(),
                                        new BasicIdentityProvider("urn-x:testid"));