Skip to content

Commit

Permalink
go/roothash/tests: Increase the duration of the receive timeout
Browse files Browse the repository at this point in the history
In unit tests, CometBFT typically generates consensus blocks
at a rate of 10 per second. However, if consensus timeout occurs
in steps RoundStepPropose or RoundStepPrecommitWait, this rate
can significantly decrease to just 1 block per second or even
worse. If test requires waiting for a few consensus blocks,
these delays can accumulate and potentially lead to failures.
  • Loading branch information
peternose committed Oct 18, 2023
1 parent 23e2205 commit 26ffcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/roothash/tests/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
)

const (
recvTimeout = 5 * time.Second
recvTimeout = 10 * time.Second
nrRuntimes = 3
)

Expand Down

0 comments on commit 26ffcfb

Please sign in to comment.