summaryrefslogtreecommitdiff
path: root/jstests/libs/geo_near_random.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/libs/geo_near_random.js')
-rw-r--r--jstests/libs/geo_near_random.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/libs/geo_near_random.js b/jstests/libs/geo_near_random.js
index fd1fe36e799..b17ddabc1a4 100644
--- a/jstests/libs/geo_near_random.js
+++ b/jstests/libs/geo_near_random.js
@@ -34,7 +34,7 @@ GeoNearRandomTest.prototype.insertPts = function(nPts, indexBounds, scale) {
for (var i = 0; i < nPts; i++) {
bulk.insert({_id: i, loc: this.mkPt(scale, indexBounds)});
}
- assert.writeOK(bulk.execute());
+ assert.commandWorked(bulk.execute());
if (!indexBounds)
this.t.ensureIndex({loc: '2d'});