Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emadum committed Jan 21, 2021
1 parent 2e868cc commit 15ff2e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/functional/readpreference.test.js
Expand Up @@ -741,9 +741,8 @@ describe('ReadPreference', function() {
client
.db('test')
.collection('test')
.findOne({ a: 1 }, (err, result) => {
.findOne({ a: 1 }, err => {
expect(err).to.not.exist;
expect(result).to.exist;
expect(events)
.to.be.an('array')
.with.lengthOf(1);
Expand Down

0 comments on commit 15ff2e0

Please sign in to comment.