DATAMONGO-2089 - Polishing.
Loosen assertion to prevent false positives due to non-deterministic ordering.
This commit is contained in:
@@ -126,7 +126,7 @@ public class ReactiveChangeStreamOperationSupportTests {
|
||||
|
||||
try {
|
||||
assertThat(documents.stream().map(ChangeStreamEvent::getBody).collect(Collectors.toList()))
|
||||
.containsExactly(person1, person2, person3);
|
||||
.containsOnly(person1, person2, person3);
|
||||
} finally {
|
||||
disposable.dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user