From d288a38c18c86695bce7cb6d07ae2ae648c2b693 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 7 Sep 2023 14:11:32 +0200 Subject: [PATCH] Accept fetch failed error message for non-open port --- packages/tendermint-rpc/src/rpcclients/http.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tendermint-rpc/src/rpcclients/http.spec.ts b/packages/tendermint-rpc/src/rpcclients/http.spec.ts index 839f1b96..d486b79a 100644 --- a/packages/tendermint-rpc/src/rpcclients/http.spec.ts +++ b/packages/tendermint-rpc/src/rpcclients/http.spec.ts @@ -38,7 +38,7 @@ describe("http", () => { it("errors for non-open port", async () => { await expectAsync( http("POST", `http://localhost:56745`, undefined, createJsonRpcRequest("health")), - ).toBeRejectedWithError(/(ECONNREFUSED|Failed to fetch)/i); + ).toBeRejectedWithError(/(ECONNREFUSED|Failed to fetch|fetch failed)/i); }); it("can POST to echo server with custom headers", async () => {