mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-09 09:36:05 +00:00
a few uncaught asserts replaced with require
This commit is contained in:
@@ -69,7 +69,7 @@ func TestEvidence(t *testing.T) {
|
||||
}
|
||||
|
||||
pubKey, err := val.GetPubKey()
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
for _, c := range cases {
|
||||
ev := &DuplicateVoteEvidence{
|
||||
VoteA: c.vote1,
|
||||
|
||||
@@ -46,7 +46,7 @@ func TestProposalString(t *testing.T) {
|
||||
func TestProposalVerifySignature(t *testing.T) {
|
||||
privVal := NewMockPV()
|
||||
pubKey, err := privVal.GetPubKey()
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
|
||||
prop := NewProposal(
|
||||
4, 2, 2,
|
||||
|
||||
@@ -4,6 +4,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
@@ -143,7 +145,7 @@ func TestABCIEvidence(t *testing.T) {
|
||||
blockID2 := makeBlockID([]byte("blockhash2"), 1000, []byte("partshash"))
|
||||
const chainID = "mychain"
|
||||
pubKey, err := val.GetPubKey()
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
ev := &DuplicateVoteEvidence{
|
||||
PubKey: pubKey,
|
||||
VoteA: makeVote(val, chainID, 0, 10, 2, 1, blockID),
|
||||
|
||||
Reference in New Issue
Block a user