summaryrefslogtreecommitdiff
path: root/jstests/aggregation/sources/facet/inner_graphlookup.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/sources/facet/inner_graphlookup.js')
-rw-r--r--jstests/aggregation/sources/facet/inner_graphlookup.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/aggregation/sources/facet/inner_graphlookup.js b/jstests/aggregation/sources/facet/inner_graphlookup.js
index 9631b8878ef..a58736c4ec4 100644
--- a/jstests/aggregation/sources/facet/inner_graphlookup.js
+++ b/jstests/aggregation/sources/facet/inner_graphlookup.js
@@ -14,10 +14,10 @@ var graphColl = db.facetGraphLookup;
// The graph in ASCII form: 0 --- 1 --- 2 3
graphColl.drop();
-assert.writeOK(graphColl.insert({_id: 0, edges: [1]}));
-assert.writeOK(graphColl.insert({_id: 1, edges: [0, 2]}));
-assert.writeOK(graphColl.insert({_id: 2, edges: [1]}));
-assert.writeOK(graphColl.insert({_id: 3}));
+assert.commandWorked(graphColl.insert({_id: 0, edges: [1]}));
+assert.commandWorked(graphColl.insert({_id: 1, edges: [0, 2]}));
+assert.commandWorked(graphColl.insert({_id: 2, edges: [1]}));
+assert.commandWorked(graphColl.insert({_id: 3}));
// For each document in the collection, this will compute all the other documents that are
// reachable from this one.