Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable flaky e2e test #713

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions test/e2e/btc_staking_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,19 +667,21 @@ func (s *BTCStakingTestSuite) Test8BTCDelegationFeeGrantTyped() {

// tries to create a send transaction putting the freegranter as feepayer, it should FAIL
// since we only gave grant for BTC delegation msgs.
outBuff, errBuff, err := node.BankSendOutput(
wGratee, node.PublicAddress, stakerBalance.String(),
fmt.Sprintf("--fee-granter=%s", feePayerAddr.String()),
)
outputStr := outBuff.String() + errBuff.String()
s.Require().Contains(outputStr, fmt.Sprintf("code: %d", feegrant.ErrMessageNotAllowed.ABCICode()))
s.Require().Contains(outputStr, feegrant.ErrMessageNotAllowed.Error())
s.Nil(err)

// staker should not have lost any balance.
stakerBalances, err := node.QueryBalances(granteeStakerAddr.String())
s.Require().NoError(err)
s.Require().Equal(stakerBalance.String(), stakerBalances.String())
// TODO: Uncomment the next lines when issue: https://github.com/babylonchain/babylon/issues/693
// is fixed on cosmos-sdk side
// outBuff, errBuff, err := node.BankSendOutput(
// wGratee, node.PublicAddress, stakerBalance.String(),
// fmt.Sprintf("--fee-granter=%s", feePayerAddr.String()),
// )
// outputStr := outBuff.String() + errBuff.String()
// s.Require().Contains(outputStr, fmt.Sprintf("code: %d", feegrant.ErrMessageNotAllowed.ABCICode()))
// s.Require().Contains(outputStr, feegrant.ErrMessageNotAllowed.Error())
// s.Nil(err)

// // staker should not have lost any balance.
// stakerBalances, err := node.QueryBalances(granteeStakerAddr.String())
// s.Require().NoError(err)
// s.Require().Equal(stakerBalance.String(), stakerBalances.String())

// submit the message to create BTC delegation using the fee grant
// but putting as fee more than the spend limit
Expand Down Expand Up @@ -737,7 +739,7 @@ func (s *BTCStakingTestSuite) Test8BTCDelegationFeeGrantTyped() {

// verify the balances after the BTC delegation was submited
// the staker should continue to have zero as balance.
stakerBalances, err = node.QueryBalances(granteeStakerAddr.String())
stakerBalances, err := node.QueryBalances(granteeStakerAddr.String())
s.NoError(err)
s.Equal(stakerBalance.String(), stakerBalances.String())

Expand Down