Skip to content

Commit

Permalink
test(connection): fix tests re: #8337
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 14, 2019
1 parent 4ec852d commit e5c6ded
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions lib/connection.js
Expand Up @@ -652,9 +652,6 @@ Connection.prototype.openUri = function(uri, options, callback) {
server.s.pool.on('reconnect', () => {
_handleReconnect();
});
server.s.pool.on('reconnectFailed', () => {
_this.emit('reconnectFailed');
});
server.s.pool.on('timeout', () => {
_this.emit('timeout');
});
Expand Down
2 changes: 1 addition & 1 deletion test/connection.test.js
Expand Up @@ -260,7 +260,7 @@ describe('connections:', function() {
reconnectTries: 3,
reconnectInterval: 100,
useNewUrlParser: true,
useUnifiedTopology: true
useUnifiedTopology: false // reconnectFailed doesn't get emitted with 'useUnifiedTopology'
});

conn.on('connected', function() {
Expand Down

0 comments on commit e5c6ded

Please sign in to comment.