summaryrefslogtreecommitdiff
path: root/jstests/core/min_max_key.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/min_max_key.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/min_max_key.js')
-rw-r--r--jstests/core/min_max_key.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/min_max_key.js b/jstests/core/min_max_key.js
index 5314e8d3436..b9e9c3d6b89 100644
--- a/jstests/core/min_max_key.js
+++ b/jstests/core/min_max_key.js
@@ -18,7 +18,7 @@ const allElements = [
{_id: "a_string", a: "hello"}
];
-assert.writeOK(coll.insert(allElements));
+assert.commandWorked(coll.insert(allElements));
function testQueriesWithMinOrMaxKey() {
const eqMinRes = coll.find({a: {$eq: MinKey}}).toArray();