Skip to content

Commit 6fb0a78

Browse files
test(client): identity mismatch sends no websocket ticket
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent db41c18 commit 6fb0a78

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/client-runtime/src/authorization/layer.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ describe("RemoteEnvironmentAuthorization", () => {
328328
environmentId: "another-environment",
329329
orchestrationProtocolVersion: ORCHESTRATION_PROTOCOL_VERSION,
330330
}),
331-
websocketTicket("second-ticket"),
332331
],
333332
});
334333

@@ -339,6 +338,11 @@ describe("RemoteEnvironmentAuthorization", () => {
339338
_tag: "Failure",
340339
failure: { _tag: "ConnectionBlockedError", reason: "configuration" },
341340
});
341+
expect(
342+
harness.fetch.calls.filter(([url]) =>
343+
String(url).endsWith("/api/auth/websocket-ticket/rpc"),
344+
),
345+
).toHaveLength(1);
342346
}),
343347
);
344348
it.effect("validates a fresh bearer descriptor while issuing fresh websocket tickets", () =>

0 commit comments

Comments
 (0)