From eb9bd0c81599388d8dab34970d3218779323429b Mon Sep 17 00:00:00 2001 From: Vinod Damle Date: Thu, 30 Sep 2021 09:11:15 -0400 Subject: [PATCH] Update test with error checking Co-authored-by: baptiste-b-pegasys <85155432+baptiste-b-pegasys@users.noreply.github.com> --- consensus/istanbul/ibft/core/core_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/consensus/istanbul/ibft/core/core_test.go b/consensus/istanbul/ibft/core/core_test.go index 323e8eeb7d..b2378d16dc 100644 --- a/consensus/istanbul/ibft/core/core_test.go +++ b/consensus/istanbul/ibft/core/core_test.go @@ -115,7 +115,10 @@ func TestNilCommittedSealWithEmptyProposal(t *testing.T) { View: c.currentView(), Digest: common.StringToHash("1234567890"), } - subjectPayload, _ := ibfttypes.Encode(subject) + subjectPayload, err := ibfttypes.Encode(subject) + if err != nil { + t.Errorf("problem with encoding: %v", err) + } msg := &ibfttypes.Message{ Code: ibfttypes.MsgCommit, Msg: subjectPayload,