fix(e2e): route plugin update through timeout helper · openclaw/openclaw@e8f584e
vincentkoc
·
2026-05-27
·
via Recent Commits to openclaw:main
File tree
scripts/e2e/lib/plugin-update
| Original file line number | Diff line number | Diff line change |
|---|
@@ -36,7 +36,7 @@ plugin_update_timeout_seconds="${OPENCLAW_PLUGIN_UPDATE_TIMEOUT_SECONDS:-180}"
|
36 | 36 | node "$probe" snapshot > /tmp/plugin-update-before.json |
37 | 37 | |
38 | 38 | set +e |
39 | | -timeout "${plugin_update_timeout_seconds}s" node "$entry" plugins update @example/lossless-claw > /tmp/plugin-update-output.log 2>&1 |
| 39 | +openclaw_e2e_maybe_timeout "${plugin_update_timeout_seconds}s" node "$entry" plugins update @example/lossless-claw > /tmp/plugin-update-output.log 2>&1 |
40 | 40 | plugin_update_status=$? |
41 | 41 | set -e |
42 | 42 | if [ "$plugin_update_status" -ne 0 ]; then |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -66,8 +66,9 @@ describe("plugin update unchanged Docker E2E", () => {
|
66 | 66 | |
67 | 67 | expect(script).toContain("OPENCLAW_PLUGIN_UPDATE_TIMEOUT_SECONDS"); |
68 | 68 | expect(script).toContain( |
69 | | -'timeout "${plugin_update_timeout_seconds}s" node "$entry" plugins update', |
| 69 | +'openclaw_e2e_maybe_timeout "${plugin_update_timeout_seconds}s" node "$entry" plugins update', |
70 | 70 | ); |
| 71 | +expect(script).not.toMatch(/^\s*timeout "\$\{plugin_update_timeout_seconds\}s" node "\$entry"/mu); |
71 | 72 | expect(script).toContain('"--- plugin update output ---"'); |
72 | 73 | expect(script).toContain('"--- local registry output ---"'); |
73 | 74 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。