Skip to content

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

Chrome sweep test: list the starting Chrome with its recorded start time

milind-sonia7aa5c203115
diff --git a/server/browser/chrome/processes.test.ts b/server/browser/chrome/processes.test.ts
index f576ee48eb..a0f9d8aa60 100644
--- a/server/browser/chrome/processes.test.ts
+++ b/server/browser/chrome/processes.test.ts
@@ -116,7 +116,8 @@ describe("the process sweep", () => {
const [entry] = registry.list();
expect(entry).toMatchObject({ userDataDir, ownerPid: process.pid });
const killed: number[] = [];
- const report = await sweep({ root, registry, list: async () => [chrome(entry!.pid, userDataDir)], kill: async (pid) => { killed.push(pid); } });
+ // On Linux the launch records the process's real start time, so the listing carries the same one.
+ const report = await sweep({ root, registry, list: async () => [{ ...chrome(entry!.pid, userDataDir), startTime: entry!.startTime ?? "t" }], kill: async (pid) => { killed.push(pid); } });
expect(killed).toEqual([]);
expect(report.temporaryRemoved).toEqual([]);
expect(await failed).toBeInstanceOf(Error);