Skip to content

Commit

Permalink
test(mongo client): fix to expect error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Lord committed Nov 20, 2017
1 parent c828aab commit fc09ca9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/functional/mongo_client_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,8 @@ describe('MongoClient', function() {
var configuration = this.configuration;
var MongoClient = configuration.require.MongoClient;

MongoClient.connect('user:password@localhost:27017/test', function(err, client) {
test.notEqual(err, null);
test.notEqual(err, undefined);
client.close();
MongoClient.connect('user:password@localhost:27017/test', function(err) {
test.equal(err.message, 'invalid schema, expected mongodb or mongodb+srv');
done();
});
}
Expand Down

0 comments on commit fc09ca9

Please sign in to comment.