From f9a93d77a280da714f6309d85a71ee9ef03f25ec Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 4 Feb 2026 08:14:33 -0800 Subject: [PATCH] Fix docker test on ci --- src/utils/config/docker.test.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utils/config/docker.test.js b/src/utils/config/docker.test.js index e4b7349bc..761fb0f9b 100644 --- a/src/utils/config/docker.test.js +++ b/src/utils/config/docker.test.js @@ -45,7 +45,13 @@ describe("utils/config/docker", () => { const args = getDockerArguments(); expect(checkAndCopyConfig).toHaveBeenCalledWith("docker.yaml"); - expect(args).toEqual(expect.objectContaining({ host: expect.any(String) })); + // if running on linux, should return socketPath + if (process.platform !== "win32" && process.platform !== "darwin") { + expect(args).toEqual({ socketPath: "/var/run/docker.sock" }); + } else { + // otherwise, should return host + expect(args).toEqual(expect.objectContaining({ host: expect.any(String) })); + } }); it("returns socket config when server has a socket", () => {