Skip to content

Commit

Permalink
test: fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 16, 2024
1 parent eeab04f commit 8f789e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/auth/mixins/with_auth_finder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ test.group('withAuthFinder | verify', () => {
const invalidPasswordTime = convertHrtime(process.hrtime.bigint() - startTime)

/**
* Same timing within the range of 10 milliseconds is acceptable
* Same timing within the range of 15 milliseconds is acceptable
*/
assert.isBelow(Math.abs(invalidPasswordTime.seconds - invalidEmailTime.seconds), 1)
assert.isBelow(Math.abs(invalidPasswordTime.milliseconds - invalidEmailTime.milliseconds), 10)
assert.isBelow(Math.abs(invalidPasswordTime.milliseconds - invalidEmailTime.milliseconds), 15)
})

test('throw error when uid or password values are missing', async ({ assert }) => {
Expand Down

0 comments on commit 8f789e9

Please sign in to comment.