Skip to content

Commit 0638df5

Browse files
committed
try fix it??
1 parent 2c408f3 commit 0638df5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/node/test/index.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ describe('SentryNode', () => {
196196
dsn,
197197
integrations: [new ContextLines()],
198198
});
199-
getCurrentHub().bindClient(new NodeClient(options));
199+
const client = new NodeClient(options);
200+
getCurrentHub().bindClient(client);
200201
configureScope((scope: Scope) => {
201202
scope.setTag('test', '1');
202203
});
@@ -205,6 +206,8 @@ describe('SentryNode', () => {
205206
} catch (e) {
206207
captureException(e);
207208
}
209+
210+
void client.flush();
208211
});
209212

210213
test('capture a linked exception with pre/post context', done => {

0 commit comments

Comments
 (0)