Fix ConcurrentTransactionsTest failure with CockroachDB (#13890)

- realm has to be removed in a separate tx due to CRDB's SERIALIZABLE isolation level

Closes #13211
This commit is contained in:
Stefan Guilhen 2022-08-22 03:39:14 -03:00 committed by GitHub
parent f3a36eaad5
commit 5775e7c4ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,7 +189,7 @@ public class ConcurrentTransactionsTest extends AbstractTestRealmKeycloakTest {
});
} finally {
tearDownRealm(session, "user1", "user2");
KeycloakModelUtils.runJobInTransaction(session.getKeycloakSessionFactory(), kcSession -> tearDownRealm(kcSession, "user1", "user2"));
}
}