Skip to content

Commit a04fc70

Browse files
committed
.
1 parent 8ee8792 commit a04fc70

File tree

1 file changed

+3
-3
lines changed
  • dev-packages/e2e-tests/test-applications/cloudflare-workers/tests

1 file changed

+3
-3
lines changed

dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test('RPC method which throws an exception to be logged to sentry', async ({ bas
3131
test("Request processed by DurableObject's fetch is recorded", async ({ baseURL }) => {
3232
console.log('xx Request processed by DurableObject');
3333
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';
3535
});
3636
const response = await fetch(`${baseURL}/pass-to-object/throwException`);
3737
expect(response.status).toBe(500);
@@ -41,7 +41,7 @@ test("Request processed by DurableObject's fetch is recorded", async ({ baseURL
4141

4242
test('Websocket.webSocketMessage', async ({ baseURL }) => {
4343
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';
4545
});
4646
const url = new URL('/pass-to-object/ws', baseURL);
4747
url.protocol = url.protocol.replace('http', 'ws');
@@ -56,7 +56,7 @@ test('Websocket.webSocketMessage', async ({ baseURL }) => {
5656

5757
test('Websocket.webSocketClose', async ({ baseURL }) => {
5858
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';
6060
});
6161
const url = new URL('/pass-to-object/ws', baseURL);
6262
url.protocol = url.protocol.replace('http', 'ws');

0 commit comments

Comments
 (0)