test: tighten qa matrix tee assertions · openclaw/openclaw@50efe3f
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/qa-matrix/src/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,7 +56,14 @@ describe("live transport CLI runtime", () => {
|
56 | 56 | outputDir, |
57 | 57 | }); |
58 | 58 | process.stdout.write("stdout marker\n"); |
59 | | -await expect(tee.stop()).rejects.toMatchObject({ code: "EISDIR" }); |
| 59 | +let stopError: unknown; |
| 60 | +try { |
| 61 | +await tee.stop(); |
| 62 | +} catch (caught) { |
| 63 | +stopError = caught; |
| 64 | +} |
| 65 | +expect(stopError).toBeInstanceOf(Error); |
| 66 | +expect((stopError as NodeJS.ErrnoException).code).toBe("EISDIR"); |
60 | 67 | |
61 | 68 | expect(process.stdout.write).toBe(mutedStdoutWrite); |
62 | 69 | expect(process.stderr.write).toBe(mutedStderrWrite); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。