Skip to content

Commit

Permalink
test: try to fix flaky test
Browse files Browse the repository at this point in the history
the error is related to account sequence mismatch, so using different
accounts than the other test cases might fix it.
  • Loading branch information
tbruyelle committed Aug 20, 2024
1 parent 2120965 commit 87d4c1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/e2e_feegrant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ func (s *IntegrationTestSuite) testFeeGrant() {
api = fmt.Sprintf("http://%s", s.valResources[c.id][valIdx].GetHostPort("1317/tcp"))
)

alice, _ := c.genesisAccounts[1].keyInfo.GetAddress()
bob, _ := c.genesisAccounts[2].keyInfo.GetAddress()
charlie, _ := c.genesisAccounts[3].keyInfo.GetAddress()
alice, _ := c.genesisAccounts[4].keyInfo.GetAddress()
bob, _ := c.genesisAccounts[5].keyInfo.GetAddress()
charlie, _ := c.genesisAccounts[6].keyInfo.GetAddress()

// add fee grant from alice to bob
s.execFeeGrant(
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/e2e_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (s *IntegrationTestSuite) initNodes(c *chain) {
c.genesisAccounts[2]: Test Account 1
c.genesisAccounts[3]: Test Account 2
*/
s.Require().NoError(c.addAccountFromMnemonic(5))
s.Require().NoError(c.addAccountFromMnemonic(7))
// Initialize a genesis file for the first validator
val0ConfigDir := c.validators[0].configDir()
var addrAll []sdk.AccAddress
Expand Down

0 comments on commit 87d4c1b

Please sign in to comment.