summaryrefslogtreecommitdiff
path: root/jstests/core/regex_not_id.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/regex_not_id.js')
-rw-r--r--jstests/core/regex_not_id.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/regex_not_id.js b/jstests/core/regex_not_id.js
index 35b2c858867..a38b452d423 100644
--- a/jstests/core/regex_not_id.js
+++ b/jstests/core/regex_not_id.js
@@ -3,7 +3,7 @@
var testColl = db.regex_not_id;
testColl.drop();
-assert.writeOK(testColl.insert({_id: "ABCDEF1"}));
+assert.commandWorked(testColl.insert({_id: "ABCDEF1"}));
// Should be an error.
assert.writeError(testColl.insert({_id: /^A/}));