Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Connector test: the secrets folder's host path is a Linux path on every platform

milind-soni808f590e2278
diff --git a/connector/test/home.test.ts b/connector/test/home.test.ts
index 14be796fa7..d901404f6c 100644
--- a/connector/test/home.test.ts
+++ b/connector/test/home.test.ts
@@ -130,7 +130,8 @@ describe("the home on an own server", () => {
const f = fixture();
await started(f, D);
const spec = f.docker.container("mausbot-home")!.spec;
- const secretsDir = join(f.state.dir, "home-secrets");
+ // The host's path as Docker reports the state volume's mount point, with a / like any Linux path.
+ const secretsDir = `${f.state.dir}/home-secrets`;
expect(spec).toEqual(homeSpec(D, env, SECCOMP, { secretsDir, dropsCapabilities: true }));
expect(JSON.stringify(spec)).not.toContain(SECRET);
expect(JSON.stringify(spec)).not.toContain(RELAY);