Skip to content

Commit

Permalink
fix(e2e): Increase timeout when waiting for new block (#2606)
Browse files Browse the repository at this point in the history
Some nightly test scenarios are failing because the test that checks
that new blocks are being created timeouts. This happens on larger
networks with many perturbations, on a few heights. Currently the
timeout is 5 seconds, but in some cases it takes the network more than
20 seconds to create a block, so this PR changes it to 30 seconds.

---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [ ] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
  • Loading branch information
hvanz committed Mar 13, 2024
1 parent f788faa commit 540231c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/tests/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestApp_Hash(t *testing.T) {
require.NoError(t, err)
require.NotZero(t, status.SyncInfo.LatestBlockHeight)
return status.SyncInfo.LatestBlockHeight >= requestedHeight
}, 5*time.Second, 500*time.Millisecond)
}, 30*time.Second, 500*time.Millisecond)

block, err := client.Block(ctx, &requestedHeight)
require.NoError(t, err)
Expand Down

0 comments on commit 540231c

Please sign in to comment.