summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/views_legacy.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/views_legacy.js')
-rw-r--r--jstests/noPassthrough/views_legacy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/views_legacy.js b/jstests/noPassthrough/views_legacy.js
index 8ded34730ae..efedb669a25 100644
--- a/jstests/noPassthrough/views_legacy.js
+++ b/jstests/noPassthrough/views_legacy.js
@@ -13,7 +13,7 @@ assert.commandWorked(viewsDB.createView("view", "collection", []));
let coll = viewsDB.getCollection("collection");
for (let i = 0; i < 10; ++i) {
- assert.writeOK(coll.insert({a: i}));
+ assert.commandWorked(coll.insert({a: i}));
}
conn.forceReadMode("legacy");