From 874dbcb3e10f84109f047c950d1988721dc892b0 Mon Sep 17 00:00:00 2001 From: vmuzikar Date: Fri, 8 Dec 2017 15:46:17 +0100 Subject: [PATCH] KEYCLOAK-6007 Fix failing integration Node.js adapter test --- .../keycloak/testsuite/adapter/nodejs/NodejsAdapterTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/other/nodejs_adapter/src/test/java/org/keycloak/testsuite/adapter/nodejs/NodejsAdapterTest.java b/testsuite/integration-arquillian/tests/other/nodejs_adapter/src/test/java/org/keycloak/testsuite/adapter/nodejs/NodejsAdapterTest.java index 1214a6144c..c946360cba 100644 --- a/testsuite/integration-arquillian/tests/other/nodejs_adapter/src/test/java/org/keycloak/testsuite/adapter/nodejs/NodejsAdapterTest.java +++ b/testsuite/integration-arquillian/tests/other/nodejs_adapter/src/test/java/org/keycloak/testsuite/adapter/nodejs/NodejsAdapterTest.java @@ -22,6 +22,7 @@ import org.junit.Before; import org.junit.BeforeClass; import org.junit.Ignore; import org.junit.Test; +import org.keycloak.models.utils.SessionTimeoutHelper; import org.keycloak.representations.idm.RealmRepresentation; import org.keycloak.testsuite.AbstractAuthTest; import org.keycloak.testsuite.adapter.nodejs.page.NodejsExamplePage; @@ -140,7 +141,7 @@ public class NodejsAdapterTest extends AbstractAuthTest { // test SSO timeout - pause(ssoTimeout * 1000); + pause((ssoTimeout + SessionTimeoutHelper.IDLE_TIMEOUT_WINDOW_SECONDS) * 1000); nodejsExamplePage.clickLogin(); assertCurrentUrlStartsWithLoginUrlOf(testRealmLoginPage); // there should be an attempt for token refresh // but SSO session should be already expired