test(connection): use valid mux frames
This commit is contained in:
parent
7f3a2dae91
commit
3caa175286
1 changed files with 8 additions and 2 deletions
|
|
@ -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,
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue