Browse Source

Guard tests for $lookup with let & pipeline

Add guard to skip tests prior to 5.0 server version.

Related to: #3322
pull/4310/head
Christoph Strobl 3 years ago
parent
commit
368c644922
No known key found for this signature in database
GPG Key ID: 8CC1AB53391458C8
  1. 2
      spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/aggregation/AggregationTests.java

2
spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/aggregation/AggregationTests.java

@ -1520,6 +1520,7 @@ public class AggregationTests { @@ -1520,6 +1520,7 @@ public class AggregationTests {
}
@Test // GH-3322
@EnableIfMongoServerVersion(isGreaterThanEqual = "5.0")
void shouldLookupPeopleCorrectlyWithPipeline() {
createUsersWithReferencedPersons();
@ -1538,6 +1539,7 @@ public class AggregationTests { @@ -1538,6 +1539,7 @@ public class AggregationTests {
}
@Test // GH-3322
@EnableIfMongoServerVersion(isGreaterThanEqual = "5.0")
void shouldLookupPeopleCorrectlyWithPipelineAndLet() {
createUsersWithReferencedPersons();

Loading…
Cancel
Save