Assert whitespace websocket token rejection in smoke

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 05:00:32 +00:00
1 parent 8951ec7072
commit aa016aa047
1 file changed
+5
+5
View File
@@ -1360,6 +1360,11 @@ async function main() {
const emptyTokenWs = new WebSocket(`${parsedWsUrl.origin}${parsedWsUrl.pathname}?token=`);
await waitForUnauthorizedCloseWithoutMessages(emptyTokenWs);
const whitespaceTokenWs = new WebSocket(
`${parsedWsUrl.origin}${parsedWsUrl.pathname}?token=%20%20`,
);
await waitForUnauthorizedCloseWithoutMessages(whitespaceTokenWs);
const ws = new WebSocket(wsUrl);
await new Promise((resolve, reject) => {
let sawHello = false;