diff --git a/testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers/src/main/java/org/keycloak/testsuite/rest/TestingResourceProvider.java b/testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers/src/main/java/org/keycloak/testsuite/rest/TestingResourceProvider.java index 3612317bcf..4bdf05f465 100644 --- a/testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers/src/main/java/org/keycloak/testsuite/rest/TestingResourceProvider.java +++ b/testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers/src/main/java/org/keycloak/testsuite/rest/TestingResourceProvider.java @@ -447,10 +447,14 @@ public class TestingResourceProvider implements RealmResourceProvider { query.toTime(to); } - if (firstResult != null) { + if (firstResult != null || maxResults != null) { + if (firstResult == null) { + firstResult = 0; + } + if (maxResults == null) { + maxResults = 100; + } query.firstResult(firstResult); - } - if (maxResults != null) { query.maxResults(maxResults); }