summaryrefslogtreecommitdiff
path: root/jstests/replsets/apply_ops_create_view.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/apply_ops_create_view.js')
-rw-r--r--jstests/replsets/apply_ops_create_view.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/apply_ops_create_view.js b/jstests/replsets/apply_ops_create_view.js
index 9535790f5a9..8be1cdcc5bc 100644
--- a/jstests/replsets/apply_ops_create_view.js
+++ b/jstests/replsets/apply_ops_create_view.js
@@ -9,7 +9,7 @@ replTest.initiate();
const db = replTest.getPrimary().getDB('test');
assert.commandWorked(db.createCollection("bar"));
-assert.writeOK(db.bar.insert({a: 1, b: "hi"}));
+assert.commandWorked(db.bar.insert({a: 1, b: "hi"}));
const cmd = {
applyOps: [{op: "c", ns: db + ".$cmd", o: {create: "foo", viewOn: "bar"}}]