summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2018-11-05 10:49:40 -0500
committerJack Mulrow <jack.mulrow@mongodb.com>2018-11-15 12:24:43 -0500
commit74e3747d9814ffb6179ed51055162d359b5526cc (patch)
tree0cabeba87b307037d9b8dc9781f0a445bb5a4c99 /jstests
parent28e95dafe81c4c5d4780aaea7ef44dd69679290f (diff)
downloadmongo-74e3747d9814ffb6179ed51055162d359b5526cc.tar.gz
SERVER-37902 recovering_slaveok.js should assert all writes it makes succeed
(cherry picked from commit 72a0bc78c11f8684a47e0ba135fe25c536cd240e)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/recovering_slaveok.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/recovering_slaveok.js b/jstests/sharding/recovering_slaveok.js
index 182bdff6f33..f2eb5fafce2 100644
--- a/jstests/sharding/recovering_slaveok.js
+++ b/jstests/sharding/recovering_slaveok.js
@@ -42,8 +42,8 @@ TestData.skipCheckingUUIDsConsistentAcrossCluster = true;
print("1: initial insert");
- coll.save({_id: -1, a: "a", date: new Date()});
- coll.save({_id: 1, b: "b", date: new Date()});
+ assert.writeOK(coll.save({_id: -1, a: "a", date: new Date()}));
+ assert.writeOK(coll.save({_id: 1, b: "b", date: new Date()}));
print("2: shard collection");