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