test(hopper): avoid scheduler-sensitive exit timing
This commit is contained in:
1 parent
37c0f39954
commit
6e6827cd76
1 file changed
-2
@@ -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);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user