Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

chore(release): publish v7.9.2 #4563

Merged
merged 6 commits into from
Dec 21, 2023
Merged
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
Next Next commit
test: increase test timeout duration for slow test (#4506)
  • Loading branch information
davidmurdoch authored Aug 22, 2023
commit 60ef6c1df0de3ca5a9ca9fff8381325b8d6d471d
20 changes: 16 additions & 4 deletions packages/core/tests/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@ describe("server", () => {
} finally {
await teardown();
}
});
// TODO: this test can take a while on mac in CI, figure out why
// https://github.com/trufflesuite/ganache/issues/4505
}).timeout(0);

it("fails to `.listen()` twice, Callback", async () => {
await setup();
Expand Down Expand Up @@ -514,9 +516,19 @@ describe("server", () => {

await s.close();

const error = await post("localhost", port, jsonRpcJson, agent).catch(e => e);
assert(error instanceof Error, `Expected error to be an instance of Error, but got ${error} instead`);
assert("code" in error && (error["code"] === "ECONNREFUSED" || error["code"] === "ECONNRESET"), `Expected error.code to be ECONNREFUSED or ECONNRESET, got ${error} instead`);
const error = await post("localhost", port, jsonRpcJson, agent).catch(
e => e
);
assert(
error instanceof Error,
`Expected error to be an instance of Error, but got ${error} instead`
);
assert(
"code" in error &&
(error["code"] === "ECONNREFUSED" ||
error["code"] === "ECONNRESET"),
`Expected error.code to be ECONNREFUSED or ECONNRESET, got ${error} instead`
);
} finally {
teardown();
}
Expand Down