Skip to content

Commit

Permalink
test: force close connections in cursor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Oct 10, 2019
1 parent 879ae7d commit ad21767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/functional/cursor_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2192,7 +2192,7 @@ describe('Cursor', function() {
test.equal(5, i);
test.equal(2, finished);
test.equal(true, stream.isClosed());
client.close(done);
client.close(true, done);
}, 150);
}
};
Expand Down
2 changes: 1 addition & 1 deletion test/functional/mongo_client_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ describe('MongoClient', function() {
test: function(done) {
var configuration = this.configuration;
var url = configuration.url();
if (url.indexOf('replicaSet') !== -1) {
if (url.indexOf('rs_name') !== -1) {
url = f('%s&appname=hello%20world', configuration.url());
} else {
url = f('%s?appname=hello%20world', configuration.url());
Expand Down

0 comments on commit ad21767

Please sign in to comment.