summaryrefslogtreecommitdiff
path: root/jstests/core/system_profile.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/system_profile.js')
-rw-r--r--jstests/core/system_profile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/system_profile.js b/jstests/core/system_profile.js
index 73e6e2587c5..06c8e48f99b 100644
--- a/jstests/core/system_profile.js
+++ b/jstests/core/system_profile.js
@@ -43,7 +43,7 @@ assert.commandFailed(testDB.system.profile.runCommand("findAndModify", {query: {
// Using mapReduce to write to "system.profile" should fail.
assert.commandWorked(testDB.dropDatabase());
-assert.writeOK(testDB.foo.insert({val: 1}));
+assert.commandWorked(testDB.foo.insert({val: 1}));
assert.commandFailed(testDB.foo.runCommand("mapReduce", {
map: function() {
emit(0, this.val);
@@ -56,7 +56,7 @@ assert.commandFailed(testDB.foo.runCommand("mapReduce", {
// Using aggregate to write to "system.profile" should fail.
assert.commandWorked(testDB.dropDatabase());
-assert.writeOK(testDB.foo.insert({val: 1}));
+assert.commandWorked(testDB.foo.insert({val: 1}));
assert.commandFailed(testDB.foo.runCommand("aggregate", {pipeline: [{$out: "system.profile"}]}));
// Renaming to/from "system.profile" should fail.