consensus: reduce shared state in tests (#6313)

This commit is contained in:
Sam Kleinman
2021-04-06 11:01:48 -04:00
committed by GitHub
parent 845efdb76e
commit dbfd6fc613
7 changed files with 279 additions and 211 deletions
+2 -2
View File
@@ -15,10 +15,10 @@ import (
)
func TestReactorInvalidPrecommit(t *testing.T) {
configSetup(t)
config := configSetup(t)
n := 4
states, cleanup := randConsensusState(n, "consensus_reactor_test", newMockTickerFunc(true), newCounter)
states, cleanup := randConsensusState(config, n, "consensus_reactor_test", newMockTickerFunc(true), newCounter)
t.Cleanup(cleanup)
for i := 0; i < 4; i++ {