Skip to content

Commit

Permalink
test: reduce waiting times
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Jun 28, 2023
1 parent 3f9cf43 commit fe69674
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/e2e_ibc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}

Expand Down
1 change: 1 addition & 0 deletions tests/e2e/e2e_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/e2e_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe69674

Please sign in to comment.