Merge pull request #527 from cosmos/ibc-tests

Improve IBC unreceived tests
This commit is contained in:
Will Clark 2020-11-11 16:53:57 +01:00 committed by GitHub
commit 8dbd1fd1a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);