Skip to content

Commit

Permalink
ISPN-14194 Align the test to the new conventions
Browse files Browse the repository at this point in the history
-1 is not the infinite any more, it means apply the default, and the default is not the infinite anymore
  • Loading branch information
fax4ever committed Oct 14, 2022
1 parent 0dffcdb commit d702cd0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -339,7 +339,8 @@ private void assertTotalAndPageSize(CompletionStage<RestResponse> response, int
}

private CompletionStage<RestResponse> 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<RestResponse> queryWithDefaultPagination(RestCacheClient client, String query) {
Expand Down

0 comments on commit d702cd0

Please sign in to comment.