summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2017-10-18 17:34:16 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2017-11-03 16:39:24 -0400
commit265fa69f73e083e07c0092d62dc0f5ed54bc9cfe (patch)
tree55ed978a0b0dbe46297c4fa27c1e198aaeeca823 /jstests/libs
parent8bc6511422a1d3fecbed84d75bf707061c5a8efd (diff)
downloadmongo-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.js3
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.