From 2bd7de6e8a6d5d70c8f18d5ba9f9a9552eabbd38 Mon Sep 17 00:00:00 2001 From: Martin Kanis Date: Wed, 28 Jun 2023 15:24:11 +0200 Subject: [PATCH] UserSessionConcurrencyTest#testConcurrentNotesChange fails intermittently Closes #21290 --- .../testsuite/model/session/UserSessionConcurrencyTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/model/src/test/java/org/keycloak/testsuite/model/session/UserSessionConcurrencyTest.java b/testsuite/model/src/test/java/org/keycloak/testsuite/model/session/UserSessionConcurrencyTest.java index 8e9b1dc042..97f50b9fbf 100644 --- a/testsuite/model/src/test/java/org/keycloak/testsuite/model/session/UserSessionConcurrencyTest.java +++ b/testsuite/model/src/test/java/org/keycloak/testsuite/model/session/UserSessionConcurrencyTest.java @@ -98,8 +98,8 @@ public class UserSessionConcurrencyTest extends KeycloakModelTest { String uId = withRealm(this.realmId, (session, realm) -> session.sessions().createUserSession(null, realm, session.users().getUserByUsername(realm, "user1"), "user1", "127.0.0.1", "form", true, null, null, UserSessionModel.SessionPersistenceState.PERSISTENT)).getId(); // Create/Update client session's notes concurrently - CountDownLatch cdl = new CountDownLatch(200 * CLIENTS_COUNT); - IntStream.range(0, 200 * CLIENTS_COUNT).parallel() + CountDownLatch cdl = new CountDownLatch(20 * CLIENTS_COUNT); + IntStream.range(0, 20 * CLIENTS_COUNT).parallel() .forEach(i -> inComittedTransaction(i, (session, n) -> { try { RealmModel realm = session.realms().getRealm(realmId); ClientModel client = realm.getClientByClientId("client" + (n % CLIENTS_COUNT));