summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-07-26 11:43:32 -0400
committerJudah Schvimer <judah@mongodb.com>2017-07-26 11:43:32 -0400
commit50cbe6d35a3b61ce674eb0d8fae173f70f1dddd5 (patch)
tree3ed5b2402f96838b1d92e5881e6f9decfd8478e9 /jstests/replsets
parentee7376eec1c60210e5ec6301bfb65f415d54cc9d (diff)
downloadmongo-50cbe6d35a3b61ce674eb0d8fae173f70f1dddd5.tar.gz
SERVER-27067 Remove unnecessary references to setLastOpToSystemLastOpTime
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/noop_writes_wait_for_write_concern.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/jstests/replsets/noop_writes_wait_for_write_concern.js b/jstests/replsets/noop_writes_wait_for_write_concern.js
index e525d68503b..61ffc518df4 100644
--- a/jstests/replsets/noop_writes_wait_for_write_concern.js
+++ b/jstests/replsets/noop_writes_wait_for_write_concern.js
@@ -48,6 +48,20 @@
// }
var commands = [];
+ commands.push({
+ req: {applyOps: [{op: "i", ns: coll.getFullName(), o: {_id: 1}}]},
+ setupFunc: function() {
+ assert.writeOK(coll.insert({_id: 1}));
+ },
+ confirmFunc: function(res) {
+ assert.commandWorked(res);
+ assert.eq(res.applied, 1);
+ assert.eq(res.results[0], true);
+ assert.eq(coll.find().itcount(), 1);
+ assert.eq(coll.count({_id: 1}), 1);
+ }
+ });
+
// 'update' where the document to update does not exist.
commands.push({
req: {update: collName, updates: [{q: {a: 1}, u: {b: 2}}]},