diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-07-30 16:31:41 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-08-01 10:44:29 -0400 |
commit | 661ae0ba0831eff124a456275a53e9f761a3940a (patch) | |
tree | dd9e842cbef3eca23e6792ad0b98a6cb91c98d96 /jstests/core/index8.js | |
parent | 02948ba65855df43bfbdee5c4e0f834c678532b7 (diff) | |
download | mongo-661ae0ba0831eff124a456275a53e9f761a3940a.tar.gz |
SERVER-13635: making more js tests work for generic storage engine
Diffstat (limited to 'jstests/core/index8.js')
-rw-r--r-- | jstests/core/index8.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/index8.js b/jstests/core/index8.js index 719ad2dd2cb..946e008a0e2 100644 --- a/jstests/core/index8.js +++ b/jstests/core/index8.js @@ -8,8 +8,9 @@ t.ensureIndex( { b: 1 }, true ); t.ensureIndex( { c: 1 }, [ false, "cIndex" ] ); checkIndexes = function( num ) { -// printjson( db.system.indexes.find( { ns: "test.jstests_index8" } ).toArray() ); - indexes = db.system.indexes.find( { ns: "test.jstests_index8" } ).sort( { key: 1 } ).toArray(); + var indexes = t.getIndexes(); + assert.eq( 4, indexes.length ); + var start = 0; if ( indexes[0].name == "_id_" ) start = 1; @@ -20,7 +21,6 @@ checkIndexes = function( num ) { } checkIndexes( 1 ); - t.reIndex(); checkIndexes( 2 ); |