diff options
Diffstat (limited to 'jstests/core/sorth.js')
-rw-r--r-- | jstests/core/sorth.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/sorth.js b/jstests/core/sorth.js index 1072975a3ec..e520ee50454 100644 --- a/jstests/core/sorth.js +++ b/jstests/core/sorth.js @@ -33,8 +33,8 @@ function find( query ) { function checkMatches( expectedMatch, query ) { result = find( query ).toArray(); assertMatches( expectedMatch, result ); - explain = find( query ).explain(); - assert.eq( expectedMatch.length || 1, explain.n ); + var count = find( query ).itcount(); + assert.eq( expectedMatch.length || 1, count ); } /** Reset data, index, and _sort and _hint globals. */ |