test(e2e): print MCP Docker proof logs · openclaw/openclaw@8fa4c4f
vincentkoc
·
2026-05-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { readFileSync } from "node:fs"; |
| 2 | +import { describe, expect, it } from "vitest"; |
| 3 | + |
| 4 | +describe("Docker E2E observability", () => { |
| 5 | +it.each(["scripts/e2e/mcp-channels-docker.sh", "scripts/e2e/cron-mcp-cleanup-docker.sh"])( |
| 6 | +"prints successful MCP client proof logs from %s", |
| 7 | +(scriptPath) => { |
| 8 | +const script = readFileSync(scriptPath, "utf8"); |
| 9 | +const successTail = script.slice(script.lastIndexOf('if [ "$status" -ne 0 ]; then')); |
| 10 | + |
| 11 | +expect(successTail).toContain('cat "$CLIENT_LOG"'); |
| 12 | +expect(successTail.indexOf('cat "$CLIENT_LOG"')).toBeLessThan( |
| 13 | +successTail.indexOf('echo "OK"'), |
| 14 | +); |
| 15 | +}, |
| 16 | +); |
| 17 | +}); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。