@@ -56,28 +56,6 @@ test('Should record exceptions and transactions for faulty route handlers', asyn
56
56
57
57
await request . get ( '/route-handlers/boop/error' ) . catch ( ( ) => { } ) ;
58
58
59
- // Expect this to timeout due to upstream Next.js issue https://github.com/vercel/next.js/issues/82612
60
- // When the issue is fixed, this test should fail (because it won't timeout anymore)
61
- const timeoutDuration = 25000 ; // Less than the 30s test timeout
62
-
63
- try {
64
- await Promise . race ( [
65
- Promise . all ( [ routehandlerTransactionPromise , errorEventPromise ] ) ,
66
- new Promise ( ( _ , reject ) =>
67
- setTimeout ( ( ) => reject ( new Error ( 'Expected timeout - upstream issue still exists' ) ) , timeoutDuration ) ,
68
- ) ,
69
- ] ) ;
70
-
71
- // If we get here, the upstream issue has been fixed
72
- throw new Error ( 'Test should have timed out - upstream issue may be fixed.' ) ;
73
- } catch ( error ) {
74
- // Expected timeout - test passes
75
- if ( error instanceof Error && error . message . includes ( 'Expected timeout' ) ) {
76
- return ;
77
- }
78
- throw error ;
79
- }
80
-
81
59
const routehandlerTransaction = await routehandlerTransactionPromise ;
82
60
const routehandlerError = await errorEventPromise ;
83
61
0 commit comments