mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +00:00
set skip_timeout_commit to true for tests
For the tests its better to not use the timeout_commit, and to wait for all the votes, because otherwise we can end up with timing dependencies in the testing code which can lead to nondeterministic failures. That was part of the reason for this change originally.
This commit is contained in:
committed by
Ethan Buchman
parent
a1fd312bb1
commit
3308ac7d83
@@ -150,11 +150,6 @@ func TestValidatorSetChanges(t *testing.T) {
|
||||
nVals := 4
|
||||
css := randConsensusNetWithPeers(nVals, nPeers, "consensus_val_set_changes_test", newMockTickerFunc(true), newPersistentDummy)
|
||||
|
||||
// otherwise, the test is failing with timeout error
|
||||
for i := 0; i < nPeers; i++ {
|
||||
css[i].timeoutParams.SkipCommit0 = true
|
||||
}
|
||||
|
||||
reactors := make([]*ConsensusReactor, nPeers)
|
||||
eventChans := make([]chan interface{}, nPeers)
|
||||
for i := 0; i < nPeers; i++ {
|
||||
|
Reference in New Issue
Block a user