Skip to content

Commit

Permalink
test: fix tests descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyl-ivanchuk committed Jan 17, 2025
1 parent 6824c13 commit c6465d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit c6465d2

Please sign in to comment.