diff --git a/test/integration/node-specific/distinct.test.ts b/test/integration/node-specific/distinct.test.ts index 6deef4f8c70..434caf2c2f3 100644 --- a/test/integration/node-specific/distinct.test.ts +++ b/test/integration/node-specific/distinct.test.ts @@ -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');