@@ -10,7 +10,7 @@ test('Index page', async ({ baseURL }) => {
1010
1111test ( "worker's withSentry" , async ( { baseURL } ) => {
1212 const eventWaiter = waitForError ( 'cloudflare-workers' , event => {
13- return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'cloudflare' ;
13+ return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.http. cloudflare' ;
1414 } ) ;
1515 const response = await fetch ( `${ baseURL } /throwException` ) ;
1616 expect ( response . status ) . toBe ( 500 ) ;
@@ -29,7 +29,6 @@ test('RPC method which throws an exception to be logged to sentry', async ({ bas
2929} ) ;
3030
3131test ( "Request processed by DurableObject's fetch is recorded" , async ( { baseURL } ) => {
32- console . log ( 'xx Request processed by DurableObject' ) ;
3332 const eventWaiter = waitForError ( 'cloudflare-workers' , event => {
3433 return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object' ;
3534 } ) ;
@@ -41,7 +40,7 @@ test("Request processed by DurableObject's fetch is recorded", async ({ baseURL
4140
4241test ( 'Websocket.webSocketMessage' , async ( { baseURL } ) => {
4342 const eventWaiter = waitForError ( 'cloudflare-workers' , event => {
44- return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object_websocket ' ;
43+ return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object ' ;
4544 } ) ;
4645 const url = new URL ( '/pass-to-object/ws' , baseURL ) ;
4746 url . protocol = url . protocol . replace ( 'http' , 'ws' ) ;
@@ -56,7 +55,7 @@ test('Websocket.webSocketMessage', async ({ baseURL }) => {
5655
5756test ( 'Websocket.webSocketClose' , async ( { baseURL } ) => {
5857 const eventWaiter = waitForError ( 'cloudflare-workers' , event => {
59- return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object_websocket ' ;
58+ return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object ' ;
6059 } ) ;
6160 const url = new URL ( '/pass-to-object/ws' , baseURL ) ;
6261 url . protocol = url . protocol . replace ( 'http' , 'ws' ) ;
0 commit comments