summaryrefslogtreecommitdiff
path: root/jstests/readonly/write_ops.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/readonly/write_ops.js')
-rw-r--r--jstests/readonly/write_ops.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/readonly/write_ops.js b/jstests/readonly/write_ops.js
index a5d43077cbc..ca967e0189f 100644
--- a/jstests/readonly/write_ops.js
+++ b/jstests/readonly/write_ops.js
@@ -5,7 +5,7 @@ runReadOnlyTest(function() {
return {
name: 'write_ops',
load: function(writableCollection) {
- assert.writeOK(writableCollection.insert({_id: 0, x: 1}));
+ assert.commandWorked(writableCollection.insert({_id: 0, x: 1}));
},
exec: function(readableCollection) {
// Test that insert fails.