From 67149ce3c3dbe6635a91b261e8b59c0edeccccbb Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Fri, 8 Dec 2017 02:23:41 -0500 Subject: [PATCH] fix test --- .../federation/storage/UserStorageFailureTest.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/testsuite/integration-deprecated/src/test/java/org/keycloak/testsuite/federation/storage/UserStorageFailureTest.java b/testsuite/integration-deprecated/src/test/java/org/keycloak/testsuite/federation/storage/UserStorageFailureTest.java index 6a1abfac86..029edebeec 100644 --- a/testsuite/integration-deprecated/src/test/java/org/keycloak/testsuite/federation/storage/UserStorageFailureTest.java +++ b/testsuite/integration-deprecated/src/test/java/org/keycloak/testsuite/federation/storage/UserStorageFailureTest.java @@ -228,13 +228,16 @@ public class UserStorageFailureTest { private void loginSuccessAndLogout(String username, String password) { loginPage.open(); loginPage.login(username, password); - Assert.assertEquals(AppPage.RequestType.AUTH_RESPONSE, appPage.getRequestType()); + System.out.println(driver.getCurrentUrl()); + System.out.println(driver.getPageSource()); + Assert.assertTrue(appPage.isCurrent()); Assert.assertNotNull(oauth.getCurrentQuery().get(OAuth2Constants.CODE)); oauth.openLogout(); } @Test public void testKeycloak5926() { + // make sure local copy is deleted { KeycloakSession session = keycloakRule.startSession(); @@ -276,7 +279,7 @@ public class UserStorageFailureTest { } - keycloakRule.stopSession(session, false); + keycloakRule.stopSession(session, true); } // test that we can still login to a user loginSuccessAndLogout("test-user@localhost", "password"); @@ -370,11 +373,6 @@ public class UserStorageFailureTest { events.clear(); } - @After - public void resetTimeoffset() { - Time.setOffset(0); - - } //@Test public void testIDE() throws Exception {