Skip to content

Commit 880b3c6

Browse files
committed
DATAMONGO-2089 - Polishing.
Loosen assertion to prevent false positives due to non-deterministic ordering.
1 parent 4307c46 commit 880b3c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/ReactiveChangeStreamOperationSupportTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public void changeStreamEventsShouldBeConvertedCorrectly() throws InterruptedExc
126126

127127
try {
128128
assertThat(documents.stream().map(ChangeStreamEvent::getBody).collect(Collectors.toList()))
129-
.containsExactly(person1, person2, person3);
129+
.containsOnly(person1, person2, person3);
130130
} finally {
131131
disposable.dispose();
132132
}

0 commit comments

Comments
 (0)