| author | |
| committer | |
| log | 3738373aa5ff0fff074ecb95686ef952c209957e |
| tree | 1d655b2f7fe623456617e8f562d1ef6004b94280 |
| parent | 9b9006fed571dbeb1c810493500a679a49a2ba38 |
| signature | Signed by PGP key B5690EEEBB952194 |
The terminal RPC test used raw waitForMessage to receive the expected
terminal.event push, but a server.configUpdated push from the
keybindings file watcher can arrive first depending on OS timing.
Replace with the existing waitForPush helper that filters by channel.1 files changed, 1 insertions(+), 3 deletions(-)
apps/server/src/wsServer.test.ts+1-3| ... | ... | @@ -1333,9 +1333,7 @@ describe("WebSocket Server", () => { |
| 1333 | 1333 | }; |
| 1334 | 1334 | terminalManager.emitEvent(manualEvent); |
| 1335 | 1335 | |
| 1336 | const push = (await waitForMessage(ws)) as WsPush; | |
| 1337 | expect(push.type).toBe("push"); | |
| 1338 | expect(push.channel).toBe(WS_CHANNELS.terminalEvent); | |
| 1336 | const push = await waitForPush(ws, WS_CHANNELS.terminalEvent); | |
| 1339 | 1337 | expect((push.data as TerminalEvent).type).toBe("output"); |
| 1340 | 1338 | }); |
| 1341 | 1339 |