Skip to content

Commit d178cbb

Browse files
congminh1254claude
andcommitted
fix(intTest): scope metadata query to ancestor folder
Set ancestorFolderId on the metadata query to narrow the search scope to the test folder, which helps the indexing backend find results faster and avoids cross-talk from other test data. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fc89a39 commit d178cbb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/intTest/java/com/box/sdk/MetadataTemplateIT.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ public void executeMetadataTemplateQuery() throws InterruptedException {
270270
new MetadataQuery(format("enterprise_%s.MyTemplate", TestConfig.getEnterpriseID()))
271271
.setQuery("myField > :val")
272272
.addParameter("val", 100)
273+
.setAncestorFolderId(rootFolder.getID())
273274
.setOrderBy(ascending("myField"));
274275
Retry.retry(
275276
() -> {

0 commit comments

Comments
 (0)