Skip to content

Commit

Permalink
test: swallow errors when distinct fails, because we want to check th…
Browse files Browse the repository at this point in the history
…e command
  • Loading branch information
baileympearson committed Aug 1, 2022
1 parent f5741d4 commit ed2cfa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/node-specific/distinct.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ context('command distinct', function () {
context('comment with falsy values', function () {
for (const falsyValue of falsyValues) {
it(`should send falsy value ${falsyToString(falsyValue)} on the command`, async function () {
await collection.distinct('some-key', {}, { comment: falsyValue });
await collection.distinct('some-key', {}, { comment: falsyValue }).catch(() => null);

expect(commands).to.have.lengthOf(1);
const distinctCommand = commands.find(command => command.commandName === 'distinct');
Expand Down

0 comments on commit ed2cfa3

Please sign in to comment.