diff options
Diffstat (limited to 'jstests/noPassthrough/client_metadata_slowlog.js')
-rw-r--r-- | jstests/noPassthrough/client_metadata_slowlog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/client_metadata_slowlog.js b/jstests/noPassthrough/client_metadata_slowlog.js index aab419023fe..ca4a2da4cf9 100644 --- a/jstests/noPassthrough/client_metadata_slowlog.js +++ b/jstests/noPassthrough/client_metadata_slowlog.js @@ -8,7 +8,7 @@ let conn = MongoRunner.runMongod({useLogFiles: true}); assert.neq(null, conn, 'mongod was unable to start up'); let coll = conn.getCollection("test.foo"); -assert.writeOK(coll.insert({_id: 1})); +assert.commandWorked(coll.insert({_id: 1})); // Do a really slow query beyond the 100ms threshold let count = coll.count({ |