stargate: Enable and fix pending auth test

This commit is contained in:
willclarktech 2020-11-11 15:45:53 +01:00
parent d9b8110999
commit eae5d24945
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -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();
});