summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/currentop_query.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/currentop_query.js')
-rw-r--r--jstests/noPassthrough/currentop_query.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/noPassthrough/currentop_query.js b/jstests/noPassthrough/currentop_query.js
index 15e655d568a..82dcc421de3 100644
--- a/jstests/noPassthrough/currentop_query.js
+++ b/jstests/noPassthrough/currentop_query.js
@@ -71,7 +71,7 @@ function runTests({conn, readMode, currentOp, truncatedOps, localOps}) {
dropAndRecreateTestCollection();
for (let i = 0; i < 5; ++i) {
- assert.writeOK(coll.insert({_id: i, a: i}));
+ assert.commandWorked(coll.insert({_id: i, a: i}));
}
const isLocalMongosCurOp = (FixtureHelpers.isMongos(testDB) && localOps);
@@ -280,8 +280,8 @@ function runTests({conn, readMode, currentOp, truncatedOps, localOps}) {
},
{
test: function(db) {
- assert.writeOK(db.currentop_query.remove({a: 2, $comment: "currentop_query"},
- {collation: {locale: "fr"}}));
+ assert.commandWorked(db.currentop_query.remove(
+ {a: 2, $comment: "currentop_query"}, {collation: {locale: "fr"}}));
},
operation: "remove",
planSummary: "COLLSCAN",
@@ -294,7 +294,7 @@ function runTests({conn, readMode, currentOp, truncatedOps, localOps}) {
},
{
test: function(db) {
- assert.writeOK(
+ assert.commandWorked(
db.currentop_query.update({a: 1, $comment: "currentop_query"},
{$inc: {b: 1}},
{collation: {locale: "fr"}, multi: true}));
@@ -372,7 +372,7 @@ function runTests({conn, readMode, currentOp, truncatedOps, localOps}) {
//
dropAndRecreateTestCollection();
for (let i = 0; i < 10; ++i) {
- assert.writeOK(coll.insert({a: i}));
+ assert.commandWorked(coll.insert({a: i}));
}
const originatingCommands = {
@@ -493,7 +493,7 @@ function runTests({conn, readMode, currentOp, truncatedOps, localOps}) {
*/
function runTruncationTests() {
dropAndRecreateTestCollection();
- assert.writeOK(coll.insert({a: 1}));
+ assert.commandWorked(coll.insert({a: 1}));
// When the currentOp command serializes the query object as a string, individual string
// values inside it are truncated at 150 characters. To test "total length" truncation