diff options
author | Randolph Tan <randolph@10gen.com> | 2014-03-12 11:50:31 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-03-13 15:58:06 -0400 |
commit | a08c9f4ee6d5389b3a6a96f093d8a1fdecc9cb8d (patch) | |
tree | ddc6f6395a28f0ccdde6bd2bfff3b81171c6069f /jstests/core/geo_multikey1.js | |
parent | dc28d4a2d9336904ce302c9c3c8099cb27f402eb (diff) | |
download | mongo-a08c9f4ee6d5389b3a6a96f093d8a1fdecc9cb8d.tar.gz |
SERVER-13028 fix shell to use createIndex command for createIndex method
Diffstat (limited to 'jstests/core/geo_multikey1.js')
-rw-r--r-- | jstests/core/geo_multikey1.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/geo_multikey1.js b/jstests/core/geo_multikey1.js index ce55609db25..7bf5cfaafe1 100644 --- a/jstests/core/geo_multikey1.js +++ b/jstests/core/geo_multikey1.js @@ -12,8 +12,8 @@ for( i = 0; i < 10; ++i ) { t.save( {loc:locArr,a:arr,b:arr,c:arr} ); // Parallel arrays are allowed for geo indexes. -assert.writeOK(t.ensureIndex( {loc:'2d',a:1,b:1,c:1} )); +assert.commandWorked(t.ensureIndex( {loc:'2d',a:1,b:1,c:1} )); // Parallel arrays are not allowed for normal indexes. -assert.writeError(t.ensureIndex( {loc:1,a:1,b:1,c:1} )); +assert.commandFailed(t.ensureIndex( {loc:1,a:1,b:1,c:1} )); |