From 044b1913d02531d9d3ee63b8dbc0107dd64e2394 Mon Sep 17 00:00:00 2001 From: d036670 Date: Sat, 21 Oct 2023 09:41:21 +0200 Subject: [PATCH] fix flaky test This class and many nested test classes The result is, that jku_test is deleted and recreated in parallel and this leads to inconsistency which can be solved with the retry. We have this retry on other places already. Therefore add it now here again. In real such issues wont happen therefore we maybe should solve this with creating own clients for all nested tests Most failing test seen validExpClaim --- .../cloudfoundry/identity/uaa/oauth/UaaTokenServicesTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/uaa/src/test/java/org/cloudfoundry/identity/uaa/oauth/UaaTokenServicesTests.java b/uaa/src/test/java/org/cloudfoundry/identity/uaa/oauth/UaaTokenServicesTests.java index f1b6793ebfb..606925d201a 100644 --- a/uaa/src/test/java/org/cloudfoundry/identity/uaa/oauth/UaaTokenServicesTests.java +++ b/uaa/src/test/java/org/cloudfoundry/identity/uaa/oauth/UaaTokenServicesTests.java @@ -518,6 +518,7 @@ class WhenRefreshTokenValidityIsSpecified { @BeforeEach void init() { + assumeTrue(waitForClient(clientId, 3), "Test client jku_test not up yet"); refreshTokenRequestData = new RefreshTokenRequestData( GRANT_TYPE_AUTHORIZATION_CODE, Sets.newHashSet("openid", "user_attributes"),