From 4d362fe9ca5f275b6c0046e8ed2efd5af03ff88e Mon Sep 17 00:00:00 2001 From: Hynek Mlnarik Date: Mon, 30 Jan 2017 10:52:17 +0100 Subject: [PATCH] KEYCLOAK-4191 Fix for OIDCProtocolMappersTest on mariadb --- .../org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java index ec2d9f5b79..307ef96fec 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/oauth/OIDCProtocolMappersTest.java @@ -154,7 +154,7 @@ public class OIDCProtocolMappersTest extends AbstractKeycloakTest { Object firstDepartment = idToken.getOtherClaims().get("firstDepartment"); assertThat(firstDepartment, instanceOf(String.class)); - assertThat(firstDepartment, is("finance")); // Has to be the first item + assertThat(firstDepartment, anyOf(is("finance"), is("development"))); // Has to be the first item AccessToken accessToken = oauth.verifyToken(response.getAccessToken()); assertEquals(accessToken.getName(), "Tom Brady");