From eae5d24945742856d98bb474f6bc090b58e94114 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 11 Nov 2020 15:45:53 +0100 Subject: [PATCH] stargate: Enable and fix pending auth test --- packages/stargate/src/queries/auth.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stargate/src/queries/auth.spec.ts b/packages/stargate/src/queries/auth.spec.ts index 774dfa63..4285c19e 100644 --- a/packages/stargate/src/queries/auth.spec.ts +++ b/packages/stargate/src/queries/auth.spec.ts @@ -98,12 +98,12 @@ describe("AuthExtension", () => { }); it("returns null for non-existent address", async () => { - pending("This fails with Error: Query failed with (1): internal"); pendingWithoutSimapp(); const [client, tmClient] = await makeClientWithAuth(simapp.tendermintUrl); - const account = await client.auth.unverified.account(nonExistentAddress); - expect(account).toBeNull(); + await expectAsync(client.auth.unverified.account(nonExistentAddress)).toBeRejectedWithError( + /account cosmos1p79apjaufyphcmsn4g07cynqf0wyjuezqu84hd not found/i, + ); tmClient.disconnect(); });