summaryrefslogtreecommitdiff
path: root/jstests/core/geo10.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-03-12 11:50:31 -0400
committerRandolph Tan <randolph@10gen.com>2014-03-13 15:58:06 -0400
commita08c9f4ee6d5389b3a6a96f093d8a1fdecc9cb8d (patch)
treeddc6f6395a28f0ccdde6bd2bfff3b81171c6069f /jstests/core/geo10.js
parentdc28d4a2d9336904ce302c9c3c8099cb27f402eb (diff)
downloadmongo-a08c9f4ee6d5389b3a6a96f093d8a1fdecc9cb8d.tar.gz
SERVER-13028 fix shell to use createIndex command for createIndex method
Diffstat (limited to 'jstests/core/geo10.js')
-rw-r--r--jstests/core/geo10.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo10.js b/jstests/core/geo10.js
index b122da99f2a..e098d4eef11 100644
--- a/jstests/core/geo10.js
+++ b/jstests/core/geo10.js
@@ -3,7 +3,7 @@
coll = db.geo10
coll.drop();
-assert.writeOK( db.geo10.ensureIndex( { c : '2d', t : 1 }, { min : 0, max : Math.pow( 2, 40 ) } ));
+assert.commandWorked( db.geo10.ensureIndex( { c : '2d', t : 1 }, { min : 0, max : Math.pow( 2, 40 ) } ));
assert( db.system.indexes.count({ ns : "test.geo10" }) == 2, "A3" )
printjson( db.system.indexes.find().toArray() )