From 26a7498c7073973b67fc2297d4e79dab3f7ca5c3 Mon Sep 17 00:00:00 2001 From: Siddhant Deshmukh Date: Wed, 11 Oct 2023 02:41:47 -0700 Subject: [PATCH] Fix tests Signed-off-by: Siddhant Deshmukh --- .../org/opensearch/index/query/QueryBuilderVisitorTests.java | 2 +- .../java/org/opensearch/snapshots/SnapshotResiliencyTests.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/index/query/QueryBuilderVisitorTests.java b/server/src/test/java/org/opensearch/index/query/QueryBuilderVisitorTests.java index 0fd627fe642b7..7849d3985ca59 100644 --- a/server/src/test/java/org/opensearch/index/query/QueryBuilderVisitorTests.java +++ b/server/src/test/java/org/opensearch/index/query/QueryBuilderVisitorTests.java @@ -21,7 +21,7 @@ public void testNoOpsVisitor() { List visitedQueries = new ArrayList<>(); QueryBuilderVisitor qbv = createTestVisitor(visitedQueries); - boolQueryBuilder.visit(qbv, 0); + boolQueryBuilder.visit(qbv); QueryBuilderVisitor subQbv = qbv.getChildVisitor(BooleanClause.Occur.MUST_NOT); assertEquals(0, visitedQueries.size()); assertEquals(qbv, subQbv); diff --git a/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java b/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java index 80731b378f369..ac715a3cbdf37 100644 --- a/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java +++ b/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java @@ -2301,6 +2301,7 @@ public void onFailure(final Exception e) { List.of(), client ), + null, null ) );