From 3caa1752867f81db5f366bdbffd46bcc0690169c Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Tue, 4 Aug 2026 16:49:06 +0800 Subject: [PATCH] test(connection): use valid mux frames --- .../client/connection/tests/websocket-downlink.spec.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/client/connection/tests/websocket-downlink.spec.ts b/packages/client/connection/tests/websocket-downlink.spec.ts index 1702dbcf83..9d53a82820 100644 --- a/packages/client/connection/tests/websocket-downlink.spec.ts +++ b/packages/client/connection/tests/websocket-downlink.spec.ts @@ -208,7 +208,10 @@ describe('WebSocket downlinks', () => { sourceSignal = signal try { await gate - yield { rpcId: RpcId('late'), payload: { type: 'host/commands-changed' } } + yield { + rpcId: RpcId('late'), + payload: { type: 'session/subscribed', sessionId: 'session-late' as never, lastSeq: 0 }, + } } finally { finish() } @@ -233,7 +236,10 @@ describe('WebSocket downlinks', () => { const downlinks = new WebSocketDownlinks(api( async function * () { await gate - yield { rpcId: RpcId('send-failure'), payload: { type: 'host/commands-changed' } } + yield { + rpcId: RpcId('send-failure'), + payload: { type: 'session/subscribed', sessionId: 'session-send' as never, lastSeq: 0 }, + } }, idle, ))