Explorar el Código

test(connection): use valid mux frames

imccyu hace 1 mes
padre
commit
3caa175286
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8 2
      packages/client/connection/tests/websocket-downlink.spec.ts

+ 8 - 2
packages/client/connection/tests/websocket-downlink.spec.ts

@@ -208,7 +208,10 @@ describe('WebSocket downlinks', () => {
         sourceSignal = signal
         sourceSignal = signal
         try {
         try {
           await gate
           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 {
         } finally {
           finish()
           finish()
         }
         }
@@ -233,7 +236,10 @@ describe('WebSocket downlinks', () => {
     const downlinks = new WebSocketDownlinks(api(
     const downlinks = new WebSocketDownlinks(api(
       async function * () {
       async function * () {
         await gate
         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,
       idle,
     ))
     ))