Skip to content

Commit

Permalink
decrease pause in failing IBC transfer with sudo test
Browse files Browse the repository at this point in the history
  • Loading branch information
sotnikov-s committed Nov 14, 2024
1 parent bd13ff2 commit 7576e2d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/testcases/parallel/ibc_transfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,19 +471,13 @@ describe('Neutron / IBC transfer', () => {
},
});

/*
What is going on here. To test SudoTimeout handler functionality
we have to make an IBC package delivery by hermes really slowly.
But, actually there is no any activity on the IBC channel at this stage, as a result
hermes does not send any UpdateClient messages from gaia to neuron.
Gaia keeps building blocks and hermes knows nothing about it.
We get the height =N of the gaia chain, wait 15 blocks.
Send ibc package from neutron from gaia with timeout N+5
current gaia block is actually N+15, but neutron knows nothing about it, and successfully sends package
hermes checks height on remote chain and Timeout error occurs.
*/
// to test SudoTimeout handler functionality we have to do a late IBC package delivery
// by hermes. We get the height =N of the gaia chain, wait 5 blocks, and send ibc package
// from neutron to gaia with timeout N+5. Current gaia block is N+5, but neutron knows
// nothing about it, and successfully sends package whereas hermes checks height on remote
// chain and Timeout error occurs.
const currentHeight = await gaiaClient.getHeight();
await waitBlocks(15, gaiaClient);
await waitBlocks(5, gaiaClient);

await neutronClient.execute(ibcContract, {
send: {
Expand Down

0 comments on commit 7576e2d

Please sign in to comment.