Skip to content

Commit 697586b

Browse files
committed
try fix it??
1 parent fa13155 commit 697586b

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
@@ -186,13 +186,16 @@ describe('SentryNode', () => {
186186
dsn,
187187
integrations: [new ContextLines()],
188188
});
189-
getCurrentHub().bindClient(new NodeClient(options));
189+
const client = new NodeClient(options);
190+
getCurrentHub().bindClient(client);
190191
getCurrentScope().setTag('test', '1');
191192
try {
192193
throw new Error('test');
193194
} catch (e) {
194195
captureException(e);
195196
}
197+
198+
void client.flush();
196199
});
197200

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

0 commit comments

Comments
 (0)