diff --git a/core/src/test/java/dev/morphia/test/TemplatedTestBase.java b/core/src/test/java/dev/morphia/test/TemplatedTestBase.java index bc26ba4cae8..7796992ac3a 100644 --- a/core/src/test/java/dev/morphia/test/TemplatedTestBase.java +++ b/core/src/test/java/dev/morphia/test/TemplatedTestBase.java @@ -212,7 +212,7 @@ private Method isTestMethod(StackTraceElement element) { } public void testQuery(Function, Query> function) { - testQuery(function); + testQuery(new ActionTestOptions(), function); } public void testQuery(ActionTestOptions options, @@ -228,7 +228,7 @@ public void testQuery(ActionTestOptions options, } public void testUpdate(Function, Query> function, UpdateOperator... operators) { - testUpdate(function, operators); + testUpdate(new ActionTestOptions(), function, operators); } public void testUpdate(ActionTestOptions options, diff --git a/core/src/test/java/dev/morphia/test/aggregation/expressions/TestMedian.java b/core/src/test/java/dev/morphia/test/aggregation/expressions/TestMedian.java index 2db12c53d75..92d34c0d2fb 100644 --- a/core/src/test/java/dev/morphia/test/aggregation/expressions/TestMedian.java +++ b/core/src/test/java/dev/morphia/test/aggregation/expressions/TestMedian.java @@ -12,7 +12,6 @@ import static dev.morphia.aggregation.stages.SetWindowFields.Output.output; import static dev.morphia.aggregation.stages.SetWindowFields.setWindowFields; import static dev.morphia.query.Sort.ascending; -import static dev.morphia.test.ServerVersion.ANY; import static dev.morphia.test.ServerVersion.v70; public class TestMedian extends TemplatedTestBase { @@ -21,7 +20,7 @@ public class TestMedian extends TemplatedTestBase { */ @Test(testName = "Use |operatorName| as an Accumulator") public void testExample1() { - testPipeline(new ActionTestOptions().serverVersion(ANY).orderMatters(false), + testPipeline(new ActionTestOptions().serverVersion(v70).orderMatters(false), aggregation -> aggregation.pipeline(group().field("test01_median", median("$test01")))); }