Skip to content

Commit ad21767

Browse files
committed
test: force close connections in cursor tests
1 parent 879ae7d commit ad21767

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/functional/cursor_tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2192,7 +2192,7 @@ describe('Cursor', function() {
21922192
test.equal(5, i);
21932193
test.equal(2, finished);
21942194
test.equal(true, stream.isClosed());
2195-
client.close(done);
2195+
client.close(true, done);
21962196
}, 150);
21972197
}
21982198
};

test/functional/mongo_client_tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ describe('MongoClient', function() {
638638
test: function(done) {
639639
var configuration = this.configuration;
640640
var url = configuration.url();
641-
if (url.indexOf('replicaSet') !== -1) {
641+
if (url.indexOf('rs_name') !== -1) {
642642
url = f('%s&appname=hello%20world', configuration.url());
643643
} else {
644644
url = f('%s?appname=hello%20world', configuration.url());

0 commit comments

Comments
 (0)