Skip to content

Commit 464131d

Browse files
committed
Revert node changes
1 parent 63073c0 commit 464131d

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

packages/node/test/integration/breadcrumbs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { cleanupOtel, mockSdkInit } from '../helpers/mockSdkInit';
99
describe('Integration | breadcrumbs', () => {
1010
const beforeSendTransaction = vi.fn(() => null);
1111

12-
afterEach(async () => {
13-
await cleanupOtel();
12+
afterEach(() => {
13+
cleanupOtel();
1414
});
1515

1616
describe('without tracing', () => {

packages/node/test/integration/scope.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import type { NodeClient } from '../../src/sdk/client';
88
import { cleanupOtel, mockSdkInit, resetGlobals } from '../helpers/mockSdkInit';
99

1010
describe('Integration | Scope', () => {
11-
afterEach(async () => {
12-
await cleanupOtel();
11+
afterEach(() => {
12+
cleanupOtel();
1313
});
1414

1515
describe.each([

packages/node/test/integration/transactions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import * as Sentry from '../../src';
1010
import { cleanupOtel, getProvider, mockSdkInit } from '../helpers/mockSdkInit';
1111

1212
describe('Integration | Transactions', () => {
13-
afterEach(async () => {
13+
afterEach(() => {
1414
vi.restoreAllMocks();
15-
await cleanupOtel();
15+
cleanupOtel();
1616
});
1717

1818
it('correctly creates transaction & spans', async () => {

packages/node/test/sdk/api.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { afterEach, describe, expect, it, vi } from 'vitest';
33
import { getActiveSpan, getClient, startInactiveSpan, startSpan, withActiveSpan } from '../../src';
44
import { cleanupOtel, mockSdkInit } from '../helpers/mockSdkInit';
55

6-
afterEach(async () => {
6+
afterEach(() => {
77
vi.restoreAllMocks();
8-
await cleanupOtel();
8+
cleanupOtel();
99
});
1010

1111
describe('withActiveSpan()', () => {

packages/node/test/sdk/client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ describe('NodeClient', () => {
1818
setOpenTelemetryContextAsyncContextStrategy();
1919
});
2020

21-
afterEach(async () => {
21+
afterEach(() => {
2222
vi.restoreAllMocks();
23-
await cleanupOtel();
23+
cleanupOtel();
2424
});
2525

2626
it('sets correct metadata', () => {

packages/node/test/sdk/init.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ describe('init()', () => {
3131
mockAutoPerformanceIntegrations = vi.spyOn(auto, 'getAutoPerformanceIntegrations').mockImplementation(() => []);
3232
});
3333

34-
afterEach(async () => {
35-
await cleanupOtel();
34+
afterEach(() => {
35+
cleanupOtel();
3636

3737
vi.clearAllMocks();
3838
});
@@ -152,9 +152,9 @@ describe('init()', () => {
152152
});
153153

154154
describe('validateOpenTelemetrySetup', () => {
155-
afterEach(async () => {
155+
afterEach(() => {
156156
global.__SENTRY__ = {};
157-
await cleanupOtel();
157+
cleanupOtel();
158158
vi.clearAllMocks();
159159
});
160160

packages/node/test/utils/ensureIsWrapped.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const wrappedfunction = Object.assign(() => {}, {
1212
});
1313

1414
describe('ensureIsWrapped', () => {
15-
afterEach(async () => {
15+
afterEach(() => {
1616
vi.restoreAllMocks();
17-
await cleanupOtel();
17+
cleanupOtel();
1818
resetGlobals();
1919
});
2020

0 commit comments

Comments
 (0)