mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-04 04:04:00 +00:00
testing: pass testing.T to assert and require always, assertion cleanup (#7508)
This commit is contained in:
@@ -265,7 +265,7 @@ func TestCreateProposalBlock(t *testing.T) {
|
||||
cc := abciclient.NewLocalCreator(kvstore.NewApplication())
|
||||
proxyApp := proxy.NewAppConns(cc, logger, proxy.NopMetrics())
|
||||
err = proxyApp.Start(ctx)
|
||||
require.Nil(t, err)
|
||||
require.NoError(t, err)
|
||||
|
||||
const height int64 = 1
|
||||
state, stateDB, privVals := state(t, 1, height)
|
||||
@@ -361,7 +361,7 @@ func TestMaxTxsProposalBlockSize(t *testing.T) {
|
||||
cc := abciclient.NewLocalCreator(kvstore.NewApplication())
|
||||
proxyApp := proxy.NewAppConns(cc, logger, proxy.NopMetrics())
|
||||
err = proxyApp.Start(ctx)
|
||||
require.Nil(t, err)
|
||||
require.NoError(t, err)
|
||||
|
||||
const height int64 = 1
|
||||
state, stateDB, _ := state(t, 1, height)
|
||||
@@ -427,7 +427,7 @@ func TestMaxProposalBlockSize(t *testing.T) {
|
||||
cc := abciclient.NewLocalCreator(kvstore.NewApplication())
|
||||
proxyApp := proxy.NewAppConns(cc, logger, proxy.NopMetrics())
|
||||
err = proxyApp.Start(ctx)
|
||||
require.Nil(t, err)
|
||||
require.NoError(t, err)
|
||||
|
||||
state, stateDB, _ := state(t, types.MaxVotesCount, int64(1))
|
||||
stateStore := sm.NewStore(stateDB)
|
||||
|
||||
Reference in New Issue
Block a user