File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3229,7 +3229,7 @@ exports['Should correctly execute count on cursor with limit and skip'] = {
3229
3229
var db = configuration . newDbInstance ( configuration . writeConcernMax ( ) , { poolSize :1 } ) ;
3230
3230
db . open ( function ( err , db ) {
3231
3231
// Create collection
3232
- db . createCollection ( 'Should_correctly_execute_count_on_cursor_1 ' , function ( err , collection ) {
3232
+ db . createCollection ( 'Should_correctly_execute_count_on_cursor_1_ ' , function ( err , collection ) {
3233
3233
test . equal ( null , err ) ;
3234
3234
3235
3235
// insert all docs
@@ -3240,11 +3240,13 @@ exports['Should correctly execute count on cursor with limit and skip'] = {
3240
3240
// Create a cursor for the content
3241
3241
var cursor = collection . find ( { } ) ;
3242
3242
cursor . limit ( 100 ) . skip ( 0 ) . count ( function ( err , c ) {
3243
+ console . log ( "======================================= " + c )
3243
3244
test . equal ( null , err ) ;
3244
3245
test . equal ( 50 , c ) ;
3245
3246
3246
3247
var cursor = collection . find ( { } ) ;
3247
3248
cursor . limit ( 100 ) . skip ( 0 ) . toArray ( function ( err , docs ) {
3249
+ console . log ( "======================================= " + docs . length )
3248
3250
test . equal ( null , err ) ;
3249
3251
test . equal ( 50 , c ) ;
3250
3252
You can’t perform that action at this time.
0 commit comments