Skip to content

Commit 190a7ba

Browse files
committed
Fix
1 parent 8a8c1bf commit 190a7ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/test/metrics.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ describe('Metrics', () => {
1515
});
1616

1717
afterEach(() => {
18-
jest.runOnlyPendingTimers();
18+
const client = getClient();
19+
client?.close();
20+
jest.clearAllTimers();
1921
jest.useRealTimers();
20-
getClient()?.close();
2122
});
2223

2324
describe('beforeSendMetric', () => {

0 commit comments

Comments
 (0)