Skip to content

Commit 368c644

Browse files
Guard tests for $lookup with let & pipeline
Add guard to skip tests prior to 5.0 server version. Related to: #3322
1 parent 4d050f5 commit 368c644

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/aggregation/AggregationTests.java

+2
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,7 @@ void shouldLookupPeopleCorectly() {
15201520
}
15211521

15221522
@Test // GH-3322
1523+
@EnableIfMongoServerVersion(isGreaterThanEqual = "5.0")
15231524
void shouldLookupPeopleCorrectlyWithPipeline() {
15241525
createUsersWithReferencedPersons();
15251526

@@ -1538,6 +1539,7 @@ void shouldLookupPeopleCorrectlyWithPipeline() {
15381539
}
15391540

15401541
@Test // GH-3322
1542+
@EnableIfMongoServerVersion(isGreaterThanEqual = "5.0")
15411543
void shouldLookupPeopleCorrectlyWithPipelineAndLet() {
15421544
createUsersWithReferencedPersons();
15431545

0 commit comments

Comments
 (0)