From 110b6510ee4e86110aadab995b8e7bb3a590a82b Mon Sep 17 00:00:00 2001 From: evanchooly Date: Sun, 12 May 2024 23:35:29 -0400 Subject: [PATCH] restrict server version --- .../java/dev/morphia/test/aggregation/stages/TestUnionWith.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/dev/morphia/test/aggregation/stages/TestUnionWith.java b/core/src/test/java/dev/morphia/test/aggregation/stages/TestUnionWith.java index 9defa50c15f..c8fac6de845 100644 --- a/core/src/test/java/dev/morphia/test/aggregation/stages/TestUnionWith.java +++ b/core/src/test/java/dev/morphia/test/aggregation/stages/TestUnionWith.java @@ -49,7 +49,7 @@ public void testExample2() { @Test public void testExample3() { - serverIsAtLeastVersion(Version.of(6)); + assumeTrue(serverIsAtLeastVersion(Version.of(6)), "Minimum server version is 6"); testPipeline(ServerVersion.ANY, false, true, (aggregation) -> aggregation.pipeline( unionWith( documents(