Skip to content

Commit 6081906

Browse files
author
Luca Forstner
committed
.
1 parent 2f601fa commit 6081906

File tree

1 file changed

+8
-3
lines changed
  • dev-packages/node-integration-tests/suites/express/multiple-init

1 file changed

+8
-3
lines changed

dev-packages/node-integration-tests/suites/express/multiple-init/server.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,14 @@ app.get('/test/error/:id', (req, res) => {
5454

5555
setTimeout(() => {
5656
// We flush to ensure we are sending exceptions in a certain order
57-
Sentry.flush(3000).finally(() => {
58-
res.send({});
59-
});
57+
Sentry.flush(3000).then(
58+
() => {
59+
res.send({});
60+
},
61+
() => {
62+
res.send({});
63+
},
64+
);
6065
}, 1000);
6166
});
6267

0 commit comments

Comments
 (0)