Skip to content

Commit de42e7a

Browse files
committed
test(utils): drop the retry test's redundant mock-restore hook
1 parent 643d245 commit de42e7a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎packages/utils/src/retry.test.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterEach, describe, expect, it, vi } from 'vitest'
1+
import { describe, expect, it, vi } from 'vitest'
22
import { backoffWithJitter } from './retry'
33

44
/** Pins the jitter draw: 0 is its low end, just under 2^32 its high end. */
@@ -10,10 +10,6 @@ function drawJitter(value: number) {
1010
}
1111

1212
describe('backoffWithJitter', () => {
13-
afterEach(() => {
14-
vi.restoreAllMocks()
15-
})
16-
1713
it('never waits longer than maxMs, however high the jitter draws at the cap', () => {
1814
drawJitter(0xffffffff)
1915
expect(backoffWithJitter(10, null, { baseMs: 500, maxMs: 2000 })).toBeLessThanOrEqual(2000)

0 commit comments

Comments
 (0)