perf(test): reduce setup churn in block streaming and docker tests

This commit is contained in:
Peter Steinberger
2026-02-14 01:26:05 +00:00
parent 445b4facd7
commit 38098442ca
2 changed files with 16 additions and 22 deletions
+3 -10
View File
@@ -152,19 +152,12 @@ describe("docker-setup.sh", () => {
return;
}
const sandbox = await createDockerSetupSandbox();
const env = createEnv(sandbox, {
OPENCLAW_EXTRA_MOUNTS: "",
OPENCLAW_HOME_VOLUME: "",
});
const result = spawnSync(systemBash, [sandbox.scriptPath], {
cwd: sandbox.rootDir,
env,
const syntaxCheck = spawnSync(systemBash, ["-n", join(repoRoot, "docker-setup.sh")], {
encoding: "utf8",
});
expect(result.status).toBe(0);
expect(result.stderr).not.toContain("declare: -A: invalid option");
expect(syntaxCheck.status).toBe(0);
expect(syntaxCheck.stderr).not.toContain("declare: -A: invalid option");
});
it("keeps docker-compose gateway command in sync", async () => {