mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-29 11:15:50 +00:00
consensus: reduce size of test fixtures and logging rate (#8172)
We can reduce the size of test fixtures (which will improve test reliability) without impacting these tests' primary role (which is correctness.) Also reducing these test logging will make the tests easier to read, which whill be a good quality of life improvement for devs.
This commit is contained in:
@@ -355,7 +355,7 @@ func TestReactorBasic(t *testing.T) {
|
||||
|
||||
cfg := configSetup(t)
|
||||
|
||||
n := 4
|
||||
n := 2
|
||||
states, cleanup := makeConsensusState(ctx, t,
|
||||
cfg, n, "consensus_reactor_test",
|
||||
newMockTickerFunc(true))
|
||||
@@ -445,7 +445,7 @@ func TestReactorWithEvidence(t *testing.T) {
|
||||
|
||||
cfg := configSetup(t)
|
||||
|
||||
n := 4
|
||||
n := 2
|
||||
testName := "consensus_reactor_test"
|
||||
tickerFunc := newMockTickerFunc(true)
|
||||
|
||||
@@ -551,7 +551,7 @@ func TestReactorCreatesBlockWhenEmptyBlocksFalse(t *testing.T) {
|
||||
|
||||
cfg := configSetup(t)
|
||||
|
||||
n := 4
|
||||
n := 2
|
||||
states, cleanup := makeConsensusState(ctx,
|
||||
t,
|
||||
cfg,
|
||||
@@ -574,7 +574,7 @@ func TestReactorCreatesBlockWhenEmptyBlocksFalse(t *testing.T) {
|
||||
// send a tx
|
||||
require.NoError(
|
||||
t,
|
||||
assertMempool(t, states[3].txNotifier).CheckTx(
|
||||
assertMempool(t, states[1].txNotifier).CheckTx(
|
||||
ctx,
|
||||
[]byte{1, 2, 3},
|
||||
nil,
|
||||
@@ -605,7 +605,7 @@ func TestReactorRecordsVotesAndBlockParts(t *testing.T) {
|
||||
|
||||
cfg := configSetup(t)
|
||||
|
||||
n := 4
|
||||
n := 2
|
||||
states, cleanup := makeConsensusState(ctx, t,
|
||||
cfg, n, "consensus_reactor_test",
|
||||
newMockTickerFunc(true))
|
||||
@@ -670,7 +670,7 @@ func TestReactorVotingPowerChange(t *testing.T) {
|
||||
|
||||
cfg := configSetup(t)
|
||||
|
||||
n := 4
|
||||
n := 2
|
||||
states, cleanup := makeConsensusState(ctx,
|
||||
t,
|
||||
cfg,
|
||||
|
||||
Reference in New Issue
Block a user