From fe696748d5280e96efaaae858a3ce972236e7949 Mon Sep 17 00:00:00 2001 From: Facundo Medica Date: Wed, 28 Jun 2023 11:45:42 +0200 Subject: [PATCH] test: reduce waiting times --- tests/e2e/e2e_ibc_test.go | 2 +- tests/e2e/e2e_setup_test.go | 1 + tests/e2e/e2e_util_test.go | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/e2e/e2e_ibc_test.go b/tests/e2e/e2e_ibc_test.go index 4f1b34a040..1355c60809 100644 --- a/tests/e2e/e2e_ibc_test.go +++ b/tests/e2e/e2e_ibc_test.go @@ -49,7 +49,7 @@ func (s *IntegrationTestSuite) checkSupply(endpoint, ibcDenom string, amount mat return supply.AmountOf(ibcDenom).Equal(amount) }, time.Minute, - 5*time.Second, + 2*time.Second, ) } diff --git a/tests/e2e/e2e_setup_test.go b/tests/e2e/e2e_setup_test.go index e9ae62f936..54e9017b21 100644 --- a/tests/e2e/e2e_setup_test.go +++ b/tests/e2e/e2e_setup_test.go @@ -303,6 +303,7 @@ func (s *IntegrationTestSuite) initValidatorConfigs() { s.Require().NoError(vpr.ReadInConfig()) valConfig := tmconfig.DefaultConfig() + valConfig.Consensus.TimeoutCommit = time.Second s.Require().NoError(vpr.Unmarshal(valConfig)) valConfig.P2P.ListenAddress = "tcp://0.0.0.0:26656" diff --git a/tests/e2e/e2e_util_test.go b/tests/e2e/e2e_util_test.go index fc133a1d98..1905dfbef3 100644 --- a/tests/e2e/e2e_util_test.go +++ b/tests/e2e/e2e_util_test.go @@ -125,8 +125,8 @@ func (s *IntegrationTestSuite) sendIBC(srcChainID, dstChainID, recipient string, "failed to send IBC tokens; stdout: %s, stderr: %s", outBuf.String(), errBuf.String(), ) s.T().Log("successfully sent IBC tokens") - s.T().Log("Waiting for 12 seconds to make sure trasaction is processed or include in the block") - time.Sleep(time.Second * 12) + s.T().Log("Waiting for 4 seconds to make sure trasaction is processed or include in the block") + time.Sleep(time.Second * 4) } // queryREST make http query to grpc-web endpoint and tries to decode valPtr using proto-JSON