Skip to content

Commit f513f8a

Browse files
committed
Update the test case
1 parent 1bd2c6a commit f513f8a

File tree

1 file changed

+5
-3
lines changed
  • dev-packages/e2e-tests/test-applications/node-fastify-5/tests

1 file changed

+5
-3
lines changed

dev-packages/e2e-tests/test-applications/node-fastify-5/tests/errors.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ test('Does not send error when shouldHandleError returns false', async ({ baseUR
3434
return !event.type && event.exception?.values?.[0]?.value === 'This is an error that will not be captured';
3535
});
3636

37+
errorEventPromise.then(() => {
38+
test.fail();
39+
});
40+
3741
await fetch(`${baseURL}/test-error-not-captured`);
3842

39-
// Wait for a short time to ensure no error is sent
43+
// wait for a short time to ensure the error is not captured
4044
await new Promise(resolve => setTimeout(resolve, 1000));
41-
42-
await expect(errorEventPromise).rejects.toBeDefined();
4345
});

0 commit comments

Comments
 (0)