mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 16:25:50 +00:00
test: clarify docker setup line assertions
This commit is contained in:
parent
0dc6d3de9f
commit
dd271968df
1 changed files with 7 additions and 3 deletions
|
|
@ -274,9 +274,10 @@ describe("scripts/docker/setup.sh", () => {
|
|||
expect(gatewayStartIdx).toBeGreaterThanOrEqual(0);
|
||||
|
||||
const prestartLines = lines.slice(0, gatewayStartIdx);
|
||||
expect(prestartLines.some((line) => /\bcompose\b.*\brun\b.*\bopenclaw-cli\b/.test(line))).toBe(
|
||||
false,
|
||||
const prestartCliRunLines = prestartLines.filter((line) =>
|
||||
/\bcompose\b.*\brun\b.*\bopenclaw-cli\b/.test(line),
|
||||
);
|
||||
expect(prestartCliRunLines).toEqual([]);
|
||||
});
|
||||
|
||||
it("forces BuildKit for local and sandbox docker builds", async () => {
|
||||
|
|
@ -297,7 +298,10 @@ describe("scripts/docker/setup.sh", () => {
|
|||
line.startsWith("build "),
|
||||
);
|
||||
expect(buildLines.length).toBeGreaterThanOrEqual(2);
|
||||
expect(buildLines.every((line) => line.includes("DOCKER_BUILDKIT=1"))).toBe(true);
|
||||
const buildLinesWithoutBuildKit = buildLines.filter(
|
||||
(line) => !line.includes("DOCKER_BUILDKIT=1"),
|
||||
);
|
||||
expect(buildLinesWithoutBuildKit).toEqual([]);
|
||||
});
|
||||
|
||||
it("precreates config identity dir for CLI device auth writes", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue