Skip to content

Commit 3341d97

Browse files
committed
Make change stream test more robust by not assuming that the result will arrive in the first batch
1 parent 7be97c5 commit 3341d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-core/src/test/functional/com/mongodb/operation/ChangeStreamOperationSpecification.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ class ChangeStreamOperationSpecification extends OperationFunctionalSpecificatio
367367

368368
operation.resumeAfter(result.head().getDocument('_id'))
369369
cursor = execute(operation, async)
370-
result = tryNextAndClean(cursor, async)
370+
result = nextAndClean(cursor, async)
371371

372372
then:
373373
result == expected.tail()

0 commit comments

Comments
 (0)