summaryrefslogtreecommitdiff
path: root/jstests/sharding/query_config.js
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@mongodb.com>2019-08-14 13:52:59 +0000
committerevergreen <evergreen@mongodb.com>2019-08-14 13:52:59 +0000
commit39c3a5d77b976e131d37476f2e7255d6058f5093 (patch)
tree01cc28719f215b17196ec913f475cd8efda9b37d /jstests/sharding/query_config.js
parent69d0dd1dc4fb1f78d21c47aa5dd82aa9077b69eb (diff)
downloadmongo-39c3a5d77b976e131d37476f2e7255d6058f5093.tar.gz
SERVER-42773 Replace uses of the assert.writeOK() Javascript assertion with assert.commandWorked()
Diffstat (limited to 'jstests/sharding/query_config.js')
-rw-r--r--jstests/sharding/query_config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/query_config.js b/jstests/sharding/query_config.js
index 65739b2b9a5..d6755814229 100644
--- a/jstests/sharding/query_config.js
+++ b/jstests/sharding/query_config.js
@@ -190,7 +190,7 @@ var queryConfigChunks = function(st) {
// Setup.
assert.commandWorked(st.s.adminCommand({shardcollection: testColl.getFullName(), key: {e: 1}}));
for (var i = 0; i < testCollData.length; i++) {
- assert.writeOK(testColl.insert(testCollData[i]));
+ assert.commandWorked(testColl.insert(testCollData[i]));
}
assert.commandWorked(st.s.adminCommand({split: testColl.getFullName(), middle: {e: 2}}));
assert.commandWorked(st.s.adminCommand({split: testColl.getFullName(), middle: {e: 6}}));
@@ -256,7 +256,7 @@ var queryUserCreated = function(database) {
// Setup.
dropCollectionIfExists(userColl);
for (var i = 0; i < userCollData.length; i++) {
- assert.writeOK(userColl.insert(userCollData[i]));
+ assert.commandWorked(userColl.insert(userCollData[i]));
}
assert.commandWorked(userColl.createIndex({s: 1}));