Skip to content

Commit

Permalink
fix: correctly await client actions in infra test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed committed Jan 23, 2025
1 parent 4a293e1 commit ed436d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions account-kit/infra/src/client/smartAccountClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("AlchemySmartAccountClient tests", () => {

it("should set the headers when using non-hoisted accounts", async () => {
const client = givenClient();
client
await client
.request({ method: "eth_supportedEntryPoints", params: [] })
.catch(() => {});
expect(
Expand Down Expand Up @@ -66,7 +66,7 @@ describe("AlchemySmartAccountClient tests", () => {
// clear the mock calls so we only get the latest call below
// @ts-expect-error - fetch is mocked
global.fetch.mockClear();
client
await client
.request({ method: "eth_supportedEntryPoints", params: [] })
.catch(() => {});

Expand Down Expand Up @@ -97,7 +97,7 @@ describe("AlchemySmartAccountClient tests", () => {
}),
});

client
await client
.request({ method: "eth_supportedEntryPoints", params: [] })
.catch(() => {});

Expand Down Expand Up @@ -147,7 +147,7 @@ describe("AlchemySmartAccountClient tests", () => {
}
`);

client
await client
.request({ method: "eth_supportedEntryPoints", params: [] })
.catch(() => {});

Expand Down Expand Up @@ -176,6 +176,7 @@ describe("AlchemySmartAccountClient tests", () => {
return createAlchemySmartAccountClient({
transport: alchemy({
rpcUrl: "https://localhost:3000",
retryCount: 0,
}),
chain: sepolia,
account,
Expand Down

0 comments on commit ed436d8

Please sign in to comment.