fix(e2e): bound telegram desktop proof logs · openclaw/openclaw@677358f
vincentkoc
·
2026-06-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,6 +11,7 @@ import {
|
11 | 11 | readTelegramUserProofLogTailBytes, |
12 | 12 | recordProbeVideo, |
13 | 13 | REMOTE_SETUP_COMMAND_TIMEOUT_MS, |
| 14 | +renderLaunchDesktop, |
14 | 15 | runCommand, |
15 | 16 | startLocalSut, |
16 | 17 | waitForLog, |
@@ -156,6 +157,15 @@ describe("telegram user Crabbox proof log polling", () => {
|
156 | 157 | expect(message).not.toContain("old-secret"); |
157 | 158 | }); |
158 | 159 | |
| 160 | +it("bounds remote Telegram Desktop launch diagnostics", () => { |
| 161 | +const script = renderLaunchDesktop(); |
| 162 | + |
| 163 | +expect(script).toContain("print_desktop_log_tail() {"); |
| 164 | +expect(script).toContain('tail -c 262144 "$log_file"'); |
| 165 | +expect(script).toContain("print_desktop_log_tail\n exit 1"); |
| 166 | +expect(script).not.toContain('cat "$root/telegram-desktop.log"'); |
| 167 | +}); |
| 168 | + |
159 | 169 | posixIt("kills timed-out command process groups when the leader exits first", async () => { |
160 | 170 | const root = makeTempDir(); |
161 | 171 | const scriptPath = path.join(root, "trap-term.mjs"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。