fix(e2e): drop unused codex media event buffer · openclaw/openclaw@9268f9f
vincentkoc
·
2026-05-29
·
via Recent Commits to openclaw:main
File tree
scripts/e2e/lib/codex-media-path
| Original file line number | Diff line number | Diff line change |
|---|
@@ -70,7 +70,6 @@ async function connectGateway() {
|
70 | 70 | const ws = new WebSocket(`ws://127.0.0.1:${port}`); |
71 | 71 | await waitForWebSocketOpen(ws, 45_000, "gateway ws open timeout"); |
72 | 72 | |
73 | | -const events = []; |
74 | 73 | const pending = new Map(); |
75 | 74 | ws.on("message", (data) => { |
76 | 75 | let frame; |
@@ -80,10 +79,6 @@ async function connectGateway() {
|
80 | 79 | return; |
81 | 80 | } |
82 | 81 | if (frame?.type === "event" && typeof frame.event === "string") { |
83 | | -events.push({ |
84 | | -event: frame.event, |
85 | | -payload: frame.payload && typeof frame.payload === "object" ? frame.payload : {}, |
86 | | -}); |
87 | 82 | return; |
88 | 83 | } |
89 | 84 | if (frame?.type !== "res" || typeof frame.id !== "string") { |
@@ -153,7 +148,6 @@ async function connectGateway() {
|
153 | 148 | await request("sessions.subscribe", {}, { timeoutMs: 60_000 }); |
154 | 149 | |
155 | 150 | return { |
156 | | - events, |
157 | 151 | request, |
158 | 152 | async close() { |
159 | 153 | if (ws.readyState === WebSocket.CLOSED) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。