Skip to content

Commit

Permalink
tests: port lsm e2e, fix testing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Dec 11, 2023
1 parent c2a70a1 commit b9340bb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
3 changes: 0 additions & 3 deletions tests/e2e/e2e_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,6 @@ func (s *IntegrationTestSuite) execWithdrawReward(
}

func (s *IntegrationTestSuite) executeGaiaTxCommand(ctx context.Context, c *chain, gaiaCommand []string, valIdx int, validation func([]byte, []byte) bool) {
fmt.Println("## RUNNING #XEC ###", gaiaCommand)
if validation == nil {
validation = s.defaultExecValidation(s.chainA, 0)
}
Expand Down Expand Up @@ -708,8 +707,6 @@ func (s *IntegrationTestSuite) executeGaiaTxCommand(ctx context.Context, c *chai

stdOut := outBuf.Bytes()
stdErr := errBuf.Bytes()
fmt.Println("## EXECUTED STDOUT ###", string(stdOut))
fmt.Println("## EXECUTED STDERR ###", string(stdErr))
if !validation(stdOut, stdErr) {
s.Require().FailNowf("Exec validation failed", "stdout: %s, stderr: %s",
string(stdOut), string(stdErr))
Expand Down
5 changes: 3 additions & 2 deletions tests/e2e/e2e_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,9 @@ func (s *IntegrationTestSuite) writeLiquidStakingParamsUpdateProposal(c *chain,
"max_validators": %d,
"max_entries": %d,
"historical_entries": %d,
"bond_denom": "",
"bond_denom": "%s",
"min_commission_rate": "%s",
"validator_bond_factor":" %s,"
"validator_bond_factor": "%s",
"global_liquid_staking_cap": "%s",
"validator_liquid_staking_cap": "%s"
}
Expand All @@ -940,6 +940,7 @@ func (s *IntegrationTestSuite) writeLiquidStakingParamsUpdateProposal(c *chain,
oldParams.MaxValidators,
oldParams.MaxEntries,
oldParams.HistoricalEntries,
oldParams.BondDenom,
oldParams.MinCommissionRate,
sdk.NewDec(250), // validator bond factor
sdk.NewDecWithPrec(25, 2), // 25 global_liquid_staking_cap
Expand Down
24 changes: 12 additions & 12 deletions tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ package e2e
import "fmt"

var (
runBankTest = false
runBypassMinFeeTest = false
runEncodeTest = false
runEvidenceTest = false
runFeeGrantTest = false
runGlobalFeesTest = false
runGovTest = false
runIBCTest = false
runSlashingTest = false
runStakingAndDistributionTest = false
runVestingTest = false
runRestInterfacesTest = false
runBankTest = true
runBypassMinFeeTest = true
runEncodeTest = true
runEvidenceTest = true
runFeeGrantTest = true
runGlobalFeesTest = true
runGovTest = true
runIBCTest = true
runSlashingTest = true
runStakingAndDistributionTest = true
runVestingTest = true
runRestInterfacesTest = true
runLsmTest = true
)

Expand Down

0 comments on commit b9340bb

Please sign in to comment.