Assert empty websocket token rejection in smoke

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 04:52:56 +00:00
1 parent a1021ecd49
commit 288c773b3e
1 file changed
+3
+3
View File
@@ -1357,6 +1357,9 @@ async function main() {
);
await waitForUnauthorizedCloseWithoutMessages(wrongTokenWs);
const emptyTokenWs = new WebSocket(`${parsedWsUrl.origin}${parsedWsUrl.pathname}?token=`);
await waitForUnauthorizedCloseWithoutMessages(emptyTokenWs);
const ws = new WebSocket(wsUrl);
await new Promise((resolve, reject) => {
let sawHello = false;