Skip to content

Commit

Permalink
fix: check for both old and new error message text
Browse files Browse the repository at this point in the history
  • Loading branch information
maritz committed Mar 14, 2021
1 parent 3031dac commit b2c8f2c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/find.test.ts
Expand Up @@ -1204,9 +1204,10 @@ Please handle this in your code to make sure everything works as you intended it
),
);
}
t.is(
err.message,
'ERR min or max is not a float',
t.true(
// the error message from redis itself was changed, so we test for both old and new version.
err.message === 'ERR min or max is not a float' ||
err.message === 'ERR value is not an integer or out of range',
"Invalid or parseAble find options didn't throw an error.",
);
}
Expand Down

0 comments on commit b2c8f2c

Please sign in to comment.