From 69d7482a6a8f136265c3d76d5b13a7ef3d8ab80c Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 11 Nov 2020 16:38:55 +0100 Subject: [PATCH] stargate: Improve IBC unreceived tests --- packages/stargate/src/queries/ibc.spec.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/stargate/src/queries/ibc.spec.ts b/packages/stargate/src/queries/ibc.spec.ts index 82463ef2..6d9fecd2 100644 --- a/packages/stargate/src/queries/ibc.spec.ts +++ b/packages/stargate/src/queries/ibc.spec.ts @@ -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);