test: clean up core test helpers · openclaw/openclaw@3dc4029
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -136,12 +136,13 @@ async function expectRePairingRequest(params: {
|
136 | 136 | deviceIdentity: pairedNode.identity, |
137 | 137 | commands: params.reconnectCommands, |
138 | 138 | }); |
| 139 | +const connectedControlWs = controlWs; |
139 | 140 | |
140 | 141 | let lastNodes: Array<{ nodeId: string; connected?: boolean; commands?: string[] }> = []; |
141 | 142 | await vi.waitFor(async () => { |
142 | 143 | const list = await rpcReq<{ |
143 | 144 | nodes?: Array<{ nodeId: string; connected?: boolean; commands?: string[] }>; |
144 | | -}>(controlWs, "node.list", {}); |
| 145 | +}>(connectedControlWs, "node.list", {}); |
145 | 146 | lastNodes = list.payload?.nodes ?? []; |
146 | 147 | const node = lastNodes.find( |
147 | 148 | (entry) => entry.nodeId === pairedNode.identity.deviceId && entry.connected, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。