summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough
diff options
context:
space:
mode:
authorWenbin Zhu <wenbin.zhu@mongodb.com>2021-10-14 17:51:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-14 18:45:43 +0000
commit16c954fa873af6c06ae5428b8af7db3363ae8747 (patch)
tree1fd5b57a025f92cca0104d67097718839302d08c /jstests/noPassthrough
parente4c27a5c36dfe4c510809c8d1feb824a545b8b58 (diff)
downloadmongo-16c954fa873af6c06ae5428b8af7db3363ae8747.tar.gz
SERVER-60086 Add read concern check for aggregate commands.
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r--jstests/noPassthrough/set_window_fields_read_concern_snapshot.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/noPassthrough/set_window_fields_read_concern_snapshot.js b/jstests/noPassthrough/set_window_fields_read_concern_snapshot.js
index 1668dc899d7..8f19b2c9864 100644
--- a/jstests/noPassthrough/set_window_fields_read_concern_snapshot.js
+++ b/jstests/noPassthrough/set_window_fields_read_concern_snapshot.js
@@ -63,8 +63,7 @@ aggregationCommand = {
allowDiskUse: true,
cursor: {},
};
-assert.commandFailedWithCode(sessionColl.runCommand(aggregationCommand),
- ErrorCodes.OperationNotSupportedInTransaction);
+assert.commandFailedWithCode(sessionColl.runCommand(aggregationCommand), ErrorCodes.InvalidOptions);
// Transaction state is now unusual, abort it and start a new one.
session.abortTransaction();
session.startTransaction({readConcern: {level: "snapshot"}});
@@ -75,7 +74,6 @@ aggregationCommand = {
allowDiskUse: true,
cursor: {}
};
-assert.commandFailedWithCode(sessionColl.runCommand(aggregationCommand),
- ErrorCodes.OperationNotSupportedInTransaction);
+assert.commandFailedWithCode(sessionColl.runCommand(aggregationCommand), ErrorCodes.InvalidOptions);
rst.stopSet();
})();