diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-07-16 16:51:23 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-07-16 16:51:23 -0400 |
commit | 1feb386bc1d2e74f0603360bae643a3b2f1e2140 (patch) | |
tree | 3bbb8da189b43520653e474ab19b90c7a45c9bfc | |
parent | fead64cbc7d1410b372303d7135015dafe47f39f (diff) | |
download | mongo-r1.5.5.tar.gz |
fix explain testr1.5.5
-rw-r--r-- | jstests/clone/clonecollection.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/clone/clonecollection.js b/jstests/clone/clonecollection.js index 1398a87a84f..43d76254d81 100644 --- a/jstests/clone/clonecollection.js +++ b/jstests/clone/clonecollection.js @@ -91,7 +91,9 @@ if ( t.system.indexes.find().count() != 2 ) { } assert.eq( 2, t.system.indexes.find().count(), "expected index missing" ); // Verify index works -assert.eq( 50, t.a.find( { i: 50 } ).hint( { i: 1 } ).explain().indexBounds[0][0].i , "verify 1" ); +x = t.a.find( { i: 50 } ).hint( { i: 1 } ).explain() +printjson( x ) +assert.eq( 50, x.indexBounds.i[0][0] , "verify 1" ); assert.eq( 1, t.a.find( { i: 50 } ).hint( { i: 1 } ).toArray().length, "match length did not match expected" ); // Check that capped-ness is preserved on clone |