Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Jan 10, 2025
1 parent 2fa7f9c commit 47bb7ae
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ describe('ExpressInstrumentation', () => {
);
});

it('captures thrown endpoint errors', async () => {
it('captures thrown errors', async () => {
const rootSpan = tracer.startSpan('rootSpan');
let finishListenerCount: number | undefined;
const httpServer = await serverWithMiddleware(tracer, rootSpan, app => {
Expand All @@ -355,7 +355,7 @@ describe('ExpressInstrumentation', () => {
next();
});

app.get('/error', (req, res) => {
app.use((req, res) => {
throw new Error('message');
});
});
Expand All @@ -366,7 +366,7 @@ describe('ExpressInstrumentation', () => {
await context.with(
trace.setSpan(context.active(), rootSpan),
async () => {
await httpRequest.get(`http://localhost:${port}/error`);
await httpRequest.get(`http://localhost:${port}/`);
rootSpan.end();
assert.strictEqual(finishListenerCount, 2);

Expand Down

0 comments on commit 47bb7ae

Please sign in to comment.