summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/apply_ops_mode.js
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2018-02-08 18:15:57 -0500
committerMaria van Keulen <maria@mongodb.com>2018-02-21 10:28:45 -0500
commit6df7ca5841e2ffa40354975323e410796d952382 (patch)
treeec090fec1d80dc979b4e8439a848d932c4a5b4e9 /jstests/noPassthrough/apply_ops_mode.js
parenta3f077342401e97df986c66792eb099978301631 (diff)
downloadmongo-6df7ca5841e2ffa40354975323e410796d952382.tar.gz
SERVER-32597 Bump generic fCV references
Diffstat (limited to 'jstests/noPassthrough/apply_ops_mode.js')
-rw-r--r--jstests/noPassthrough/apply_ops_mode.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/noPassthrough/apply_ops_mode.js b/jstests/noPassthrough/apply_ops_mode.js
index bd21665cef1..a4a6e5a838f 100644
--- a/jstests/noPassthrough/apply_ops_mode.js
+++ b/jstests/noPassthrough/apply_ops_mode.js
@@ -6,6 +6,7 @@
(function() {
'use strict';
+ load('jstests/libs/feature_compatibility_version.js');
var standalone = MongoRunner.runMongod();
var db = standalone.getDB("test");
@@ -56,7 +57,7 @@
updateOp = {
op: 'u',
ns: systemVersionColl.getFullName(),
- o: {_id: "featureCompatibilityVersion", version: "3.4"},
+ o: {_id: "featureCompatibilityVersion", version: lastStableFCV},
o2: {_id: "featureCompatibilityVersion"}
};
assert.commandFailed(
@@ -65,7 +66,7 @@
assert.commandWorked(db.adminCommand({applyOps: [updateOp], oplogApplicationMode: "ApplyOps"}));
// Test default succeeds.
- updateOp.o.targetVersion = "3.6";
+ updateOp.o.targetVersion = latestFCV;
assert.commandWorked(db.adminCommand({
applyOps: [updateOp],
}));