Repository navigation
Commit 0149d73
test(core): fix fake-timer teardown order in retryPolicy tests
jest.useRealTimers() ran before jest.restoreAllMocks(), so the
setTimeout spy was restored onto globalThis after real timers had
already been reinstated. Harmless within this file since each
beforeEach re-fakes timers, but the order was backwards.
Per review on #3420.
Co-authored-by: Cursor <[email protected]>1 parent 3a453b2 commit 0149d73
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
0 commit comments