Skip to content

Commit 39e9336

Browse files
committed
test(scripts): match installer e2e env validation
1 parent 392f5b7 commit 39e9336

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/scripts/docker-build-helper.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3003,7 +3003,10 @@ output="$(cat "$sampler_log")"
30033003
const wrapper = readFileSync("scripts/test-install-sh-e2e-docker.sh", "utf8");
30043004

30053005
expect(runner).toContain(
3006-
'AGENT_TURNS_PARALLEL="${OPENCLAW_INSTALL_E2E_AGENT_TURNS_PARALLEL:-1}"',
3006+
"AGENT_TURNS_PARALLEL=\"$(read_boolean_env OPENCLAW_INSTALL_E2E_AGENT_TURNS_PARALLEL 1)\"",
3007+
);
3008+
expect(runner).toContain(
3009+
"AGENT_TOOL_SMOKE=\"$(read_boolean_env OPENCLAW_INSTALL_E2E_AGENT_TOOL_SMOKE 1)\"",
30073010
);
30083011
expect(runner).toContain("time_phase");
30093012
expect(runner).toContain("phase_mark_start");
@@ -3030,7 +3033,7 @@ output="$(cat "$sampler_log")"
30303033
expect(runner).toContain("OPENCLAW_INSTALL_E2E_OPENAI_MODEL");
30313034
expect(runner).toContain("OPENCLAW_INSTALL_E2E_OPENAI_PROVIDER_TIMEOUT_SECONDS");
30323035
expect(runner).toContain(
3033-
'AGENT_TURN_TIMEOUT_SECONDS="${OPENCLAW_INSTALL_E2E_AGENT_TURN_TIMEOUT_SECONDS:-300}"',
3036+
"AGENT_TURN_TIMEOUT_SECONDS=\"$(read_positive_int_env OPENCLAW_INSTALL_E2E_AGENT_TURN_TIMEOUT_SECONDS 300)\"",
30343037
);
30353038
});
30363039

0 commit comments

Comments
 (0)