Skip to content

Commit b9a3db1

Browse files
committed
test(e2e): parse corrupt plugin timeouts as decimal
1 parent a9c0592 commit b9a3db1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/e2e/lib/plugin-update/corrupt-update-scenario.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ baseline="${OPENCLAW_UPDATE_CORRUPT_PLUGIN_BASELINE:-openclaw@latest}"
2121
update_timeout_seconds="$(openclaw_e2e_read_positive_int_env OPENCLAW_UPDATE_CORRUPT_PLUGIN_TIMEOUT_SECONDS 900)"
2222
default_update_step_timeout_seconds="$update_timeout_seconds"
2323
if [ "$update_timeout_seconds" -gt 60 ]; then
24-
default_update_step_timeout_seconds=$((update_timeout_seconds - 30))
24+
default_update_step_timeout_seconds=$((10#$update_timeout_seconds - 30))
2525
fi
2626
update_step_timeout_seconds="$(openclaw_e2e_read_positive_int_env OPENCLAW_UPDATE_CORRUPT_PLUGIN_STEP_TIMEOUT_SECONDS "$default_update_step_timeout_seconds")"
2727
echo "Installing baseline OpenClaw package: $baseline"

test/scripts/plugin-update-unchanged-docker.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ describe("plugin update unchanged Docker E2E", () => {
202202
);
203203
expect(script).toContain("OPENCLAW_UPDATE_CORRUPT_PLUGIN_STEP_TIMEOUT_SECONDS");
204204
expect(script).toContain(
205-
'default_update_step_timeout_seconds=$((update_timeout_seconds - 30))',
205+
'default_update_step_timeout_seconds=$((10#$update_timeout_seconds - 30))',
206206
);
207207
expect(script).not.toContain(
208208
'update_timeout_seconds="${OPENCLAW_UPDATE_CORRUPT_PLUGIN_TIMEOUT_SECONDS:-900}"',

0 commit comments

Comments
 (0)