Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: increase retries and block times in integration test for CI #988

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions app/test/block_size_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestIntegrationTestSuite(t *testing.T) {
cfg.EnableTMLogging = false
cfg.MinGasPrices = "0utia"
cfg.NumValidators = 1
cfg.TimeoutCommit = time.Millisecond * 400
cfg.TimeoutCommit = time.Millisecond * 800
suite.Run(t, NewIntegrationTestSuite(cfg))
}

Expand Down Expand Up @@ -137,7 +137,19 @@ func (s *IntegrationTestSuite) TestMaxBlockSize() {
heights := make(map[int64]int)
for _, hash := range hashes {
// TODO: reenable fetching and verifying proofs
resp, err := queryTx(val.ClientCtx, hash, false)
var (
resp *rpctypes.ResultTx
err error
)
// try to query for the same transaction up to 4 times in an
// effort to make the CI less flakey
for j := 0; j < 4; j++ {
resp, err = queryTx(val.ClientCtx, hash, false)
if err == nil {
break
}
time.Sleep(100 * time.Millisecond)
}
assert.NoError(err)
assert.Equal(abci.CodeTypeOK, resp.TxResult.Code)
if resp.TxResult.Code == abci.CodeTypeOK {
Expand Down