Skip to content

Commit

Permalink
rm ibc transfer debug prints as well
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Sep 19, 2024
1 parent f1147a4 commit 7a53a72
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions src/testcases/parallel/ibc_transfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(25, gaiaClient);
await waitBlocks(15, gaiaClient);

await neutronClient.execute(ibcContract, {
send: {
Expand Down Expand Up @@ -562,12 +562,6 @@ 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: {
Expand All @@ -578,14 +572,7 @@ describe('Neutron / IBC transfer', () => {
},
});

await neutronClient.waitBlocks(35);

// check that failures count is the same
failuresResAfter = await contractManagerQuerier.failures({
address: ibcContract,
});

console.log(failuresResAfter);
await neutronClient.waitBlocks(5);

const res = await neutronClient.getWithAttempts<QueryFailuresResponse>(
async () =>
Expand Down Expand Up @@ -627,7 +614,6 @@ 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
Expand All @@ -643,21 +629,19 @@ 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(),
},
});
expect(res.code).toBe(0);

await neutronClient.waitBlocks(10);
await neutronClient.waitBlocks(5);

// check that failures count is changed
const failuresResAfter = await contractManagerQuerier.failures({
address: ibcContract,
});
console.log(failuresResAfter.failures);
expect(failuresResAfter.failures.length).toEqual(5);
});
});
Expand Down

0 comments on commit 7a53a72

Please sign in to comment.