diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-01-24 13:04:38 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-01-24 13:06:19 -0500 |
commit | 65749ebccbc46844ce16848c2ea34fcf1881e960 (patch) | |
tree | acef96480352d67d29109e20382dfa360562a241 /jstests/queryoptimizer4.js | |
parent | 4a39fd4c166549ac7297e5e705ff2c974363e207 (diff) | |
download | mongo-65749ebccbc46844ce16848c2ea34fcf1881e960.tar.gz |
easier to debug tests
Diffstat (limited to 'jstests/queryoptimizer4.js')
-rw-r--r-- | jstests/queryoptimizer4.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/queryoptimizer4.js b/jstests/queryoptimizer4.js index 23a7ec8444a..ebcbf7e230c 100644 --- a/jstests/queryoptimizer4.js +++ b/jstests/queryoptimizer4.js @@ -24,7 +24,8 @@ function reset( matches, filler ) { function checkCursor( query, cursor ) { t.find(query).itcount(); // Check that index on 'cursor' was chosen in the above query. - assert.eq( 'BtreeCursor ' + cursor, t.find(query).explain(true).oldPlan.cursor ); + var x = t.find(query).explain(true); + assert.eq( 'BtreeCursor ' + cursor, x.oldPlan.cursor , tojson(x) ); } // Check {b:1} takes over when {a:1} is much worse for query {a:100,b:100}. |