Skip to content

Commit

Permalink
test(NODE-4079): estimated document count takes no filter
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed May 18, 2022
1 parent 874f1df commit be2b234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/integration/collection-management/collection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,9 @@ describe('Collection', function () {
const close = e => client.close(() => done(e));
let thenFunction;
if (
test.title === 'should correctly perform estimatedDocumentCount on non-matching query'
test.title === 'should correctly perform estimatedDocumentCount'
) {
thenFunction = () => collection.estimatedDocumentCount({ a: 'b' });
thenFunction = () => collection.estimatedDocumentCount();
} else if (test.title === 'should correctly perform countDocuments on non-matching query') {
thenFunction = () => collection.countDocuments({ a: 'b' });
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/read-write-concern/readconcern.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe('ReadConcern', function () {
done();
});
} else if (test.commandName === 'count') {
collection.estimatedDocumentCount({ a: 1 }, err => {
collection.estimatedDocumentCount(err => {
expect(err).to.not.exist;
validateTestResults(started, succeeded, test.commandName, test.readConcern.level);
done();
Expand Down

0 comments on commit be2b234

Please sign in to comment.