Skip to content

Commit 31bcf97

Browse files
committed
fixed cursor test case
1 parent 6787b16 commit 31bcf97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/cursor_tests.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3229,7 +3229,7 @@ exports['Should correctly execute count on cursor with limit and skip'] = {
32293229
var db = configuration.newDbInstance(configuration.writeConcernMax(), {poolSize:1});
32303230
db.open(function(err, db) {
32313231
// 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) {
32333233
test.equal(null, err);
32343234

32353235
// insert all docs
@@ -3240,11 +3240,13 @@ exports['Should correctly execute count on cursor with limit and skip'] = {
32403240
// Create a cursor for the content
32413241
var cursor = collection.find({});
32423242
cursor.limit(100).skip(0).count(function(err, c) {
3243+
console.log("======================================= " + c)
32433244
test.equal(null, err);
32443245
test.equal(50, c);
32453246

32463247
var cursor = collection.find({});
32473248
cursor.limit(100).skip(0).toArray(function(err, docs) {
3249+
console.log("======================================= " + docs.length)
32483250
test.equal(null, err);
32493251
test.equal(50, c);
32503252

0 commit comments

Comments
 (0)