stargate: Improve IBC unreceived tests

This commit is contained in:
willclarktech 2020-11-11 16:38:55 +01:00
parent 88eaa04777
commit 69d7482a6a
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -122,10 +122,15 @@ describe("IbcExtension", () => {
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
const response = await client.ibc.unverified.unreceivedPackets(ibcTest.portId, ibcTest.channelId, [
1,
2,
3,
4,
5,
6,
7,
]);
expect(response.sequences).toEqual([Long.fromInt(4, true), Long.fromInt(5, true)]);
expect(response.sequences).toEqual([4, 5, 6, 7].map((n) => Long.fromInt(n, true)));
expect(response.height).toBeInstanceOf(ibc.core.client.v1.Height);
tmClient.disconnect();
@ -138,8 +143,13 @@ describe("IbcExtension", () => {
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
const response = await client.ibc.unverified.unreceivedAcks(ibcTest.portId, ibcTest.channelId, [
1,
2,
3,
4,
5,
6,
7,
]);
expect(response.sequences).toEqual([Long.fromInt(4, true)]);
expect(response.height).toBeInstanceOf(ibc.core.client.v1.Height);