Skip to content

Commit 5c9ed78

Browse files
authored
Merge pull request #518 from strongloop/update-travis-platforms
Add Node.js 12 to Travis CI + fix failing tests
2 parents 30409c1 + c830161 commit 5c9ed78

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: node_js
22
node_js:
3-
- "6"
4-
- "8"
3+
- "12"
54
- "10"
5+
- "8"
66
env:
77
- CXX=g++-4.8
88
addons:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"bson": "^1.0.6",
3232
"debug": "^3.1.0",
3333
"loopback-connector": "^4.5.0",
34-
"mongodb": "^3.1.4",
34+
"mongodb": "^3.2.4",
3535
"strong-globalize": "^4.1.1"
3636
},
3737
"devDependencies": {

test/mongodb.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ describe('lazyConnect', function() {
5757
});
5858

5959
ds.on('error', function(err) {
60-
err.code.should.eql('ECONNREFUSED');
60+
should.exist(err);
61+
err.name.should.equal('MongoNetworkError');
62+
err.message.should.match(/ECONNREFUSED/);
6163
done();
6264
});
6365
});
@@ -361,8 +363,9 @@ describe('mongodb connector', function() {
361363
port: 4, // unassigned by IANA
362364
});
363365
ds.ping(function(err) {
364-
(!!err).should.be.True();
365-
err.code.should.eql('ECONNREFUSED');
366+
should.exist(err);
367+
err.name.should.equal('MongoNetworkError');
368+
err.message.should.match(/ECONNREFUSED/);
366369
done();
367370
});
368371
});

0 commit comments

Comments
 (0)