diff --git a/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts b/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts index df1ca47d..3eadad3d 100644 --- a/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts +++ b/packages/cosmwasm-stargate/src/cosmwasmclient.spec.ts @@ -271,9 +271,13 @@ describe("CosmWasmClient", () => { it("works", async () => { pendingWithoutWasmd(); const client = await CosmWasmClient.connect(wasmd.endpoint); - const result = await client.getContracts(1); + const result = await client.getContracts(deployedHackatom.codeId); const expectedAddresses = deployedHackatom.instances.map((info) => info.address); - expect(result).toEqual(expectedAddresses); + + // Test first 3 instances we get from scripts/wasmd/init.sh. There may me more than that in the result. + expect(result[0]).toEqual(expectedAddresses[0]); + expect(result[1]).toEqual(expectedAddresses[1]); + expect(result[2]).toEqual(expectedAddresses[2]); }); });