Skip to content

Commit ac42e14

Browse files
committed
test(gateway): isolate operator approval client readiness
1 parent 6037a74 commit ac42e14

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/gateway/operator-approvals-client.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ vi.mock("./client.js", () => ({
6666
GatewayClient: MockGatewayClient,
6767
}));
6868

69+
vi.mock("./client-start-readiness.js", () => ({
70+
startGatewayClientWhenEventLoopReady: async (client: { start: () => void }) => {
71+
client.start();
72+
return { ready: true, aborted: false, elapsedMs: 0, maxDriftMs: 0, checks: 0 };
73+
},
74+
}));
75+
76+
vi.resetModules();
77+
6978
const { withOperatorApprovalsGatewayClient } = await import("./operator-approvals-client.js");
7079

7180
describe("withOperatorApprovalsGatewayClient", () => {

0 commit comments

Comments
 (0)