summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/collmod.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/concurrency/fsm_workloads/collmod.js')
-rw-r--r--jstests/concurrency/fsm_workloads/collmod.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/jstests/concurrency/fsm_workloads/collmod.js b/jstests/concurrency/fsm_workloads/collmod.js
index 4fb7945ae52..ef56b6cf408 100644
--- a/jstests/concurrency/fsm_workloads/collmod.js
+++ b/jstests/concurrency/fsm_workloads/collmod.js
@@ -23,23 +23,21 @@ var $config = (function() {
collMod: this.threadCollName,
index: {keyPattern: {createdAt: 1}, expireAfterSeconds: newTTL}
});
- assertAlways.commandWorkedOrFailedWithCode(res,
- [ErrorCodes.ConflictingOperationInProgress]);
+ assertAlways.commandWorked(res);
// only assert if new expireAfterSeconds differs from old one
- if (res.ok === 1 && res.hasOwnProperty('expireAfterSeconds_new')) {
+ if (res.hasOwnProperty('expireAfterSeconds_new')) {
assertWhenOwnDB.eq(res.expireAfterSeconds_new, newTTL);
}
// Attempt an invalid collMod which should always fail regardless of whether a WCE
// occurred. This is meant to reproduce SERVER-56772.
const encryptSchema = {$jsonSchema: {properties: {_id: {encrypt: {}}}}};
- assertAlways.commandFailedWithCode(
- db.runCommand({
- collMod: this.threadCollName,
- validator: encryptSchema,
- validationAction: "warn"
- }),
- [ErrorCodes.ConflictingOperationInProgress, ErrorCodes.QueryFeatureNotAllowed]);
+ assertAlways.commandFailedWithCode(db.runCommand({
+ collMod: this.threadCollName,
+ validator: encryptSchema,
+ validationAction: "warn"
+ }),
+ ErrorCodes.QueryFeatureNotAllowed);
}
return {collMod: collMod};