diff --git a/server/src/test/java/org/opensearch/index/query/NestedQueryBuilderTests.java b/server/src/test/java/org/opensearch/index/query/NestedQueryBuilderTests.java index 29efd64e5c751..385623555e60a 100644 --- a/server/src/test/java/org/opensearch/index/query/NestedQueryBuilderTests.java +++ b/server/src/test/java/org/opensearch/index/query/NestedQueryBuilderTests.java @@ -461,7 +461,7 @@ public void testNestedDepthOnceOnly() throws Exception { } public void testNestedDepthDefault() throws Exception { - assertEquals(20, createShardContext().getIndexSettings().getMaxNestedQueryDepth()); + assertEquals(Integer.MAX_VALUE, createShardContext().getIndexSettings().getMaxNestedQueryDepth()); } private void checkOnceNested(QueryShardContext ctx) throws Exception {