test(hopper): avoid scheduler-sensitive exit timing

This commit is contained in:
morluto 2026-07-16 19:19:28 +08:00
parent 37c0f39954
commit 6e6827cd76
1 changed files with 0 additions and 2 deletions

View File

@ -269,7 +269,6 @@ describe("HopperClient", () => {
startupTimeoutMs: 10_000,
});
clients.push(client);
const startedAt = Date.now();
const result = await client.start();
expect(result.ok).toBe(false);
if (!result.ok)
@ -277,7 +276,6 @@ describe("HopperClient", () => {
_tag: "HopperProcessError",
exitCode,
});
expect(Date.now() - startedAt).toBeLessThan(500);
},
);