Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: health checks for worker and fetcher #374

Merged
merged 3 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: fix tests descriptions
  • Loading branch information
vasyl-ivanchuk committed Jan 17, 2025
commit c6465d295230ea7bccf799490f0a0a04d7cec838
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe("JsonRpcHealthIndicator", () => {
expect(httpService.post).toHaveBeenCalledWith("http://localhost:3050", rpcRequest, { timeout: 5000 });
});

it("should use configured timeout from config service", async () => {
it("uses configured timeout from config service", async () => {
(configService.get as jest.Mock).mockImplementation((key: string) => {
if (key === "blockchain.rpcUrl") return "http://localhost:3050";
if (key === "healthChecks.rpcHealthCheckTimeoutMs") return 10000;
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/src/health/jsonRpcProvider.health.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe("JsonRpcHealthIndicator", () => {
expect(httpService.post).toHaveBeenCalledWith("http://localhost:3050", rpcRequest, { timeout: 5000 });
});

it("should use configured timeout from config service", async () => {
it("uses configured timeout from config service", async () => {
(configService.get as jest.Mock).mockImplementation((key: string) => {
if (key === "blockchain.rpcUrl") return "http://localhost:3050";
if (key === "healthChecks.rpcHealthCheckTimeoutMs") return 10000;
Expand Down
Loading