From d702cd08abe09e63cc83fc6bf07d65446b5e00cb Mon Sep 17 00:00:00 2001 From: Fabio Massimo Ercoli Date: Thu, 13 Oct 2022 15:49:30 +0200 Subject: [PATCH] ISPN-14194 Align the test to the new conventions -1 is not the infinite any more, it means apply the default, and the default is not the infinite anymore --- .../org/infinispan/rest/search/SearchCountClusteredTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/rest/src/test/java/org/infinispan/rest/search/SearchCountClusteredTest.java b/server/rest/src/test/java/org/infinispan/rest/search/SearchCountClusteredTest.java index d4d18748a409..4cd42ae63d89 100644 --- a/server/rest/src/test/java/org/infinispan/rest/search/SearchCountClusteredTest.java +++ b/server/rest/src/test/java/org/infinispan/rest/search/SearchCountClusteredTest.java @@ -339,7 +339,8 @@ private void assertTotalAndPageSize(CompletionStage response, int } private CompletionStage queryWithoutPagination(RestCacheClient client, String query) { - return client.query(query, -1, 0); + // don't do that is very inefficient (see ISPN-14194) + return client.query(query, Integer.MAX_VALUE, 0); } private CompletionStage queryWithDefaultPagination(RestCacheClient client, String query) {