test(plugin): bound plugin update package smoke

This commit is contained in:
Vincent Koc
2026-04-28 13:41:17 -07:00
parent 14f140d6f0
commit 61960342b1
2 changed files with 24 additions and 1 deletions

View File

@@ -17,4 +17,15 @@ describe("plugin update unchanged Docker E2E", () => {
expect(script).toContain('\\"installRecords\\": {');
expect(script).toContain('\\"lossless-claw\\": {');
});
it("bounds the update command and prints diagnostics on hangs", () => {
const script = readFileSync(PLUGIN_UPDATE_DOCKER_SCRIPT, "utf8");
expect(script).toContain("OPENCLAW_PLUGIN_UPDATE_TIMEOUT_SECONDS");
expect(script).toContain(
'timeout \\"\\${plugin_update_timeout_seconds}s\\" node \\"\\$entry\\" plugins update',
);
expect(script).toContain('\\"--- plugin update output ---\\"');
expect(script).toContain('\\"--- local registry output ---\\"');
});
});