You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/java/com/algorand/algosdk/integration/Applications.java
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -386,9 +386,14 @@ public void checkAppBoxesNum(String fromClient, Long limit, int expected_num) th
386
386
Response<BoxesResponse> r;
387
387
if (fromClient.equals("algod"))
388
388
r = base.aclv2.GetApplicationBoxes(this.appId).max(limit).execute();
389
-
elseif (fromClient.equals("indexer"))
390
-
r = base.v2IndexerClient.searchForApplicationBoxes(this.appId).limit(limit).execute();
391
-
else
389
+
elseif (fromClient.equals("indexer")) {
390
+
// Handle limit=0 case for indexer: omit the limit parameter to use server default
391
+
if (limit == 0) {
392
+
r = base.v2IndexerClient.searchForApplicationBoxes(this.appId).execute();
393
+
} else {
394
+
r = base.v2IndexerClient.searchForApplicationBoxes(this.appId).limit(limit).execute();
395
+
}
396
+
} else
392
397
thrownewIllegalArgumentException("expecting algod or indexer, got " + fromClient);
393
398
394
399
Assert.assertTrue(r.isSuccessful());
@@ -398,7 +403,13 @@ else if (fromClient.equals("indexer"))
398
403
399
404
@Then("according to indexer, with {long} being the parameter that limits results, and {string} being the parameter that sets the next result, the current application should have the following boxes {string}.")
0 commit comments