diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-10-18 17:34:16 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-11-03 16:39:24 -0400 |
commit | 265fa69f73e083e07c0092d62dc0f5ed54bc9cfe (patch) | |
tree | 55ed978a0b0dbe46297c4fa27c1e198aaeeca823 /jstests/libs | |
parent | 8bc6511422a1d3fecbed84d75bf707061c5a8efd (diff) | |
download | mongo-265fa69f73e083e07c0092d62dc0f5ed54bc9cfe.tar.gz |
SERVER-31443 Add support for change streams with non-simple collations.
Diffstat (limited to 'jstests/libs')
-rw-r--r-- | jstests/libs/change_stream_util.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/libs/change_stream_util.js b/jstests/libs/change_stream_util.js index 09b29a94d90..cbaf69fdedf 100644 --- a/jstests/libs/change_stream_util.js +++ b/jstests/libs/change_stream_util.js @@ -22,7 +22,8 @@ function ChangeStreamTest(_db, name = "ChangeStreamTest") { * Returns the cursor returned by the 'aggregate' command. */ self.startWatchingChanges = function({pipeline, collection, includeToken, aggregateOptions}) { - aggregateOptions = aggregateOptions || {cursor: {batchSize: 1}}; + aggregateOptions = aggregateOptions || {}; + aggregateOptions.cursor = aggregateOptions.cursor || {batchSize: 1}; if (!includeToken) { // Strip the oplog fields we aren't testing. |