Skip to content

Commit

Permalink
Merge pull request #518 from strongloop/update-travis-platforms
Browse files Browse the repository at this point in the history
Add Node.js 12 to Travis CI + fix failing tests
  • Loading branch information
bajtos authored May 10, 2019
2 parents 30409c1 + c830161 commit 5c9ed78
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- "6"
- "8"
- "12"
- "10"
- "8"
env:
- CXX=g++-4.8
addons:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"bson": "^1.0.6",
"debug": "^3.1.0",
"loopback-connector": "^4.5.0",
"mongodb": "^3.1.4",
"mongodb": "^3.2.4",
"strong-globalize": "^4.1.1"
},
"devDependencies": {
Expand Down
9 changes: 6 additions & 3 deletions test/mongodb.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ describe('lazyConnect', function() {
});

ds.on('error', function(err) {
err.code.should.eql('ECONNREFUSED');
should.exist(err);
err.name.should.equal('MongoNetworkError');
err.message.should.match(/ECONNREFUSED/);
done();
});
});
Expand Down Expand Up @@ -361,8 +363,9 @@ describe('mongodb connector', function() {
port: 4, // unassigned by IANA
});
ds.ping(function(err) {
(!!err).should.be.True();
err.code.should.eql('ECONNREFUSED');
should.exist(err);
err.name.should.equal('MongoNetworkError');
err.message.should.match(/ECONNREFUSED/);
done();
});
});
Expand Down

0 comments on commit 5c9ed78

Please sign in to comment.