Skip to content

Commit f7ca2ff

Browse files
committed
bind withClient to this
1 parent 8ca579c commit f7ca2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/connection.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ describe('Connection', function () {
276276
});
277277

278278
it('should be able to connect again after close', function () {
279-
return withClient.call(this, (client, done) => {
279+
return withClient.bind(this)((client, done) => {
280280
expect(client.isConnected()).to.be.true;
281281

282282
const collection = () => client.db('testReconnect').collection('test');

0 commit comments

Comments
 (0)