summaryrefslogtreecommitdiff
path: root/jstests/core/geo_multinest1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_multinest1.js')
-rw-r--r--jstests/core/geo_multinest1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo_multinest1.js b/jstests/core/geo_multinest1.js
index 478e2ab83e4..9d63e72eb79 100644
--- a/jstests/core/geo_multinest1.js
+++ b/jstests/core/geo_multinest1.js
@@ -11,7 +11,7 @@ var res = t.insert( { zip : "10003", data : [ { loc : [ 30, 30 ], type : "home"
{ loc : [ 49, 49 ], type : "work" } ] } );
assert.writeOK( res );
-assert.writeOK(t.ensureIndex( { "data.loc" : "2d", zip : 1 } ));
+assert.commandWorked(t.ensureIndex( { "data.loc" : "2d", zip : 1 } ));
assert.eq( 2, t.getIndexKeys().length )
res = t.insert( { zip : "10004", data : [ { loc : [ 40, 40 ], type : "home" },