diff options
author | James Wahlin <james.wahlin@mongodb.com> | 2019-08-14 13:52:59 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-14 13:52:59 +0000 |
commit | 39c3a5d77b976e131d37476f2e7255d6058f5093 (patch) | |
tree | 01cc28719f215b17196ec913f475cd8efda9b37d /jstests/core/sortl.js | |
parent | 69d0dd1dc4fb1f78d21c47aa5dd82aa9077b69eb (diff) | |
download | mongo-39c3a5d77b976e131d37476f2e7255d6058f5093.tar.gz |
SERVER-42773 Replace uses of the assert.writeOK() Javascript assertion with assert.commandWorked()
Diffstat (limited to 'jstests/core/sortl.js')
-rw-r--r-- | jstests/core/sortl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/sortl.js b/jstests/core/sortl.js index d0d94473460..3d1a4adcd12 100644 --- a/jstests/core/sortl.js +++ b/jstests/core/sortl.js @@ -5,7 +5,7 @@ var coll = db.sortl; coll.drop(); -assert.writeOK(coll.insert({_id: 1, a: 2})); +assert.commandWorked(coll.insert({_id: 1, a: 2})); var res = coll.find({_id: 1}).sort({a: 1}); assert.eq(res.next(), {_id: 1, a: 2}); assert.eq(res.hasNext(), false); |