From 65749ebccbc46844ce16848c2ea34fcf1881e960 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Tue, 24 Jan 2012 13:04:38 -0500 Subject: easier to debug tests --- jstests/queryoptimizer4.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jstests/queryoptimizer4.js') 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}. -- cgit v1.2.1