Skip to content

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

host-setup test: the plain sandbox case sees no container marker, so it holds inside Docker too (#5979)

milind-soni6e6ac735b796
diff --git a/server/browser/chrome/host-setup.test.ts b/server/browser/chrome/host-setup.test.ts
index a83fab931e..babf5876df 100644
--- a/server/browser/chrome/host-setup.test.ts
+++ b/server/browser/chrome/host-setup.test.ts
@@ -18,7 +18,7 @@ describe("host setup", () => {
});
it("names the sandbox when Chrome says it has none, and never turns it off by itself", async () => {
- const diagnosis = await diagnoseLaunchFailure({ executable: "/opt/chrome", output: "[0101/000000.000:FATAL:zygote_host_impl_linux.cc] No usable sandbox! ...", platform: "darwin" });
+ const diagnosis = await diagnoseLaunchFailure({ executable: "/opt/chrome", output: "[0101/000000.000:FATAL:zygote_host_impl_linux.cc] No usable sandbox! ...", platform: "darwin", exists: () => false });
expect(diagnosis).toBeInstanceOf(BrowserHostError);
expect(diagnosis?.kind).toBe("sandbox");
expect(diagnosis?.message).toContain(SANDBOX_STEPS_URL);