diff options
Diffstat (limited to 'jstests/core/min_max_key.js')
-rw-r--r-- | jstests/core/min_max_key.js | 2 |
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(); |