From 1db87acc98edbf616f9af7deb992a32176940ded Mon Sep 17 00:00:00 2001 From: mhajas Date: Mon, 20 Apr 2020 14:39:50 +0200 Subject: [PATCH] KEYCLOAK-13852 reset time at the end of testTokenConcurrentRefresh test --- .../testsuite/adapter/servlet/DemoServletsAdapterTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/DemoServletsAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/DemoServletsAdapterTest.java index c7da6e4c9e..182ce0e484 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/DemoServletsAdapterTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/DemoServletsAdapterTest.java @@ -794,7 +794,6 @@ public class DemoServletsAdapterTest extends AbstractServletsAdapterTest { testRealmLoginPage.form().login("bburke@redhat.com", "password"); assertCurrentUrlEquals(tokenRefreshPage); - // Revert times setAdapterAndServerTimeOffset(5, tokenRefreshPage.toString()); BasicCookieStore cookieStore = new BasicCookieStore(); @@ -826,6 +825,9 @@ public class DemoServletsAdapterTest extends AbstractServletsAdapterTest { } finally { executor.shutdownNow(); } + + // Revert times + setAdapterAndServerTimeOffset(0, tokenRefreshPage.toString()); } // Tests forwarding of parameters like "prompt"