From 87d4c1b40acac66c914dd5968565630ae412447f Mon Sep 17 00:00:00 2001 From: Thomas Bruyelle Date: Tue, 20 Aug 2024 18:46:42 +0200 Subject: [PATCH] test: try to fix flaky test the error is related to account sequence mismatch, so using different accounts than the other test cases might fix it. --- tests/e2e/e2e_feegrant_test.go | 6 +++--- tests/e2e/e2e_setup_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/e2e_feegrant_test.go b/tests/e2e/e2e_feegrant_test.go index 316cc4e5..3f4913ec 100644 --- a/tests/e2e/e2e_feegrant_test.go +++ b/tests/e2e/e2e_feegrant_test.go @@ -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( diff --git a/tests/e2e/e2e_setup_test.go b/tests/e2e/e2e_setup_test.go index 0ea05c08..a5fbe435 100644 --- a/tests/e2e/e2e_setup_test.go +++ b/tests/e2e/e2e_setup_test.go @@ -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