Skip to content

Commit 01328e8

Browse files
committed
minor test fixes
1 parent 2c85b9a commit 01328e8

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

test/functional/authentication_tests.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,17 +422,25 @@ exports['Should correctly reapply the authentications'] = {
422422
// Reconnect should reapply the credentials
423423
db.collection('test').insert({a:1}, function(err, result) {
424424
test.equal(null, err);
425+
});
425426

426-
// Reconnect should reapply the credentials
427-
db.collection('test').insert({a:1}, function(err, result) {
428-
test.equal(null, err);
427+
db.collection('test').insert({a:1}, function(err, result) {
428+
test.equal(null, err);
429+
});
429430

430-
db1.close();
431+
db.collection('test').insert({a:1}, function(err, result) {
432+
test.equal(null, err);
433+
});
431434

432-
// restart server
433-
configuration.manager.restart(true).then(function() {
434-
test.done();
435-
});
435+
// Reconnect should reapply the credentials
436+
db.collection('test').insert({a:1}, function(err, result) {
437+
test.equal(null, err);
438+
439+
db1.close();
440+
441+
// restart server
442+
configuration.manager.restart(true).then(function() {
443+
test.done();
436444
});
437445
});
438446
});

test/functional/connection_tests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ exports['Should correctly reconnect and finish query operation'] = {
399399

400400
// Await reconnect and re-authentication
401401
db.collection('test_reconnect').findOne(function(err, doc) {
402-
console.dir(err)
403402
test.equal(null, err);
404403
test.equal(1, doc.a);
405404
test.equal(2, dbReconnect);

0 commit comments

Comments
 (0)