@@ -31,7 +31,7 @@ test('RPC method which throws an exception to be logged to sentry', async ({ bas
31
31
test ( "Request processed by DurableObject's fetch is recorded" , async ( { baseURL } ) => {
32
32
console . log ( 'xx Request processed by DurableObject' ) ;
33
33
const eventWaiter = waitForError ( 'cloudflare-workers' , event => {
34
- return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'cloudflare_durableobject ' ;
34
+ return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object ' ;
35
35
} ) ;
36
36
const response = await fetch ( `${ baseURL } /pass-to-object/throwException` ) ;
37
37
expect ( response . status ) . toBe ( 500 ) ;
@@ -41,7 +41,7 @@ test("Request processed by DurableObject's fetch is recorded", async ({ baseURL
41
41
42
42
test ( 'Websocket.webSocketMessage' , async ( { baseURL } ) => {
43
43
const eventWaiter = waitForError ( 'cloudflare-workers' , event => {
44
- return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'cloudflare_durableobject ' ;
44
+ return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object_websocket ' ;
45
45
} ) ;
46
46
const url = new URL ( '/pass-to-object/ws' , baseURL ) ;
47
47
url . protocol = url . protocol . replace ( 'http' , 'ws' ) ;
@@ -56,7 +56,7 @@ test('Websocket.webSocketMessage', async ({ baseURL }) => {
56
56
57
57
test ( 'Websocket.webSocketClose' , async ( { baseURL } ) => {
58
58
const eventWaiter = waitForError ( 'cloudflare-workers' , event => {
59
- return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object ' ;
59
+ return event . exception ?. values ?. [ 0 ] ?. mechanism ?. type === 'auto.faas.cloudflare.durable_object_websocket ' ;
60
60
} ) ;
61
61
const url = new URL ( '/pass-to-object/ws' , baseURL ) ;
62
62
url . protocol = url . protocol . replace ( 'http' , 'ws' ) ;
0 commit comments