test(hopper): avoid scheduler-sensitive exit timing

This commit is contained in:
morluto committed 2026-07-16 19:51:25 +08:00
1 parent 37c0f39954
commit 6e6827cd76
1 file changed
-2
-2
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);
},
);