Skip to content

Commit

Permalink
chore: merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Jul 30, 2024
2 parents ed99321 + 7a8580c commit 06721ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/types/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const JsonRpc = z.literal(JSON_RPC_VERSION_2);

const RpcId = z.union([z.string(), z.number(), z.null()]);

export type RpcIdType = z.infer<typeof RpcId>;

const Rpc = z.object({
jsonrpc: JsonRpc,
id: z.optional(RpcId)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/timeout.utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('retryUntilReady', () => {

const promise = retryUntilReady({retries: 3, isReady, fn, intervalInMs});

await vi.advanceTimersByTimeAsync(intervalInMs * 2 * 3);
await vi.advanceTimersByTimeAsync(intervalInMs * 2);

await promise;

Expand Down
2 changes: 1 addition & 1 deletion src/utils/timeout.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export const retryUntilReady = async ({

await waitForMilliseconds(intervalInMs);

return await retryUntilReady({retries: remainingRetries, isReady, fn});
return await retryUntilReady({retries: remainingRetries, intervalInMs, isReady, fn});
};

0 comments on commit 06721ae

Please sign in to comment.