summaryrefslogtreecommitdiff
path: root/jstests/core/single_batch.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/core/single_batch.js
parent69d0dd1dc4fb1f78d21c47aa5dd82aa9077b69eb (diff)
downloadmongo-39c3a5d77b976e131d37476f2e7255d6058f5093.tar.gz
SERVER-42773 Replace uses of the assert.writeOK() Javascript assertion with assert.commandWorked()
Diffstat (limited to 'jstests/core/single_batch.js')
-rw-r--r--jstests/core/single_batch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/single_batch.js b/jstests/core/single_batch.js
index b06e5ce7aa5..d9ff6769157 100644
--- a/jstests/core/single_batch.js
+++ b/jstests/core/single_batch.js
@@ -10,7 +10,7 @@ var padding = new Array(1024 * 1024).join("x");
// Insert ~20 MB of data.
for (var i = 0; i < 20; i++) {
- assert.writeOK(coll.insert({_id: i, padding: padding}));
+ assert.commandWorked(coll.insert({_id: i, padding: padding}));
}
// The limit is 18, but we should end up with fewer documents since 18 docs won't fit in a