From 6b6b634a6391740a3e6ec0539d5ab47b31815077 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Thu, 12 Sep 2024 11:42:29 -0300 Subject: [PATCH] wip debug --- src/testcases/parallel/ibc_transfer.test.ts | 23 ++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/testcases/parallel/ibc_transfer.test.ts b/src/testcases/parallel/ibc_transfer.test.ts index 6f41728f..06f0c94f 100644 --- a/src/testcases/parallel/ibc_transfer.test.ts +++ b/src/testcases/parallel/ibc_transfer.test.ts @@ -483,7 +483,7 @@ describe('Neutron / IBC transfer', () => { hermes checks height on remote chain and Timeout error occurs. */ const currentHeight = await gaiaClient.getHeight(); - await waitBlocks(15, gaiaClient); + await waitBlocks(25, gaiaClient); await neutronClient.execute(ibcContract, { send: { @@ -562,6 +562,12 @@ describe('Neutron / IBC transfer', () => { state: 'enabled_infinite_loop', }, }); + // check that failures count is the same + let failuresResAfter = await contractManagerQuerier.failures({ + address: ibcContract, + }); + + console.log(failuresResAfter) await neutronClient.execute(ibcContract, { send: { @@ -572,7 +578,15 @@ describe('Neutron / IBC transfer', () => { }, }); - await neutronClient.waitBlocks(5); + await neutronClient.waitBlocks(35); + + // check that failures count is the same + failuresResAfter = await contractManagerQuerier.failures({ + address: ibcContract, + }); + + console.log(failuresResAfter) + const res = await neutronClient.getWithAttempts( async () => @@ -614,6 +628,7 @@ describe('Neutron / IBC transfer', () => { const failuresResAfter = await contractManagerQuerier.failures({ address: ibcContract, }); + console.log(failuresResAfter.failures) expect(failuresResAfter.failures.length).toEqual(6); // Restore sudo handler's normal state @@ -629,6 +644,7 @@ describe('Neutron / IBC transfer', () => { address: ibcContract, }); const failure = failuresResBefore.failures[0]; + console.log(failure) const res = await neutronClient.execute(ibcContract, { resubmit_failure: { failure_id: +failure.id.toString(), @@ -636,12 +652,13 @@ describe('Neutron / IBC transfer', () => { }); expect(res.code).toBe(0); - await neutronClient.waitBlocks(5); + await neutronClient.waitBlocks(10); // check that failures count is changed const failuresResAfter = await contractManagerQuerier.failures({ address: ibcContract, }); + console.log(failuresResAfter.failures) expect(failuresResAfter.failures.length).toEqual(5); }); });