diff --git a/test/framework/src/main/java/org/opensearch/test/AbstractBuilderTestCase.java b/test/framework/src/main/java/org/opensearch/test/AbstractBuilderTestCase.java index 7a8cf4963c4f1..dc7f8e69d755e 100644 --- a/test/framework/src/main/java/org/opensearch/test/AbstractBuilderTestCase.java +++ b/test/framework/src/main/java/org/opensearch/test/AbstractBuilderTestCase.java @@ -322,7 +322,7 @@ protected static QueryShardContext createShardContext() { protected static QueryBuilderVisitor createTestVisitor(List visitedQueries) { return new QueryBuilderVisitor() { @Override - public void accept(QueryBuilder qb) { + public void accept(QueryBuilder qb, int level) { visitedQueries.add(qb); }