mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Accept fetch failed error message for non-open port
This commit is contained in:
parent
9a55ecb96b
commit
d288a38c18
@ -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 () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user