From 617f47fe44fe1de0866805a996f2b93a0ad63690 Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Thu, 24 Mar 2022 13:48:24 -0400 Subject: [PATCH] Use dummy value with clearer meaning Signed-off-by: Thane Thomson --- internal/consensus/msgs_test.go | 4 ++-- types/vote_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/consensus/msgs_test.go b/internal/consensus/msgs_test.go index 184ae2393..cfbd53ff7 100644 --- a/internal/consensus/msgs_test.go +++ b/internal/consensus/msgs_test.go @@ -365,7 +365,7 @@ func TestConsMsgsVectors(t *testing.T) { Timestamp: date, Type: tmproto.PrecommitType, BlockID: bi, - Extension: []byte("signed"), + Extension: []byte("extension"), } vpb := v.ToProto() @@ -402,7 +402,7 @@ func TestConsMsgsVectors(t *testing.T) { "2a36080110011a3008011204746573741a26080110011a206164645f6d6f72655f6578636c616d6174696f6e5f6d61726b735f636f64652d"}, {"Vote", &tmcons.Message{Sum: &tmcons.Message_Vote{ Vote: &tmcons.Vote{Vote: vpb}}}, - "32780a760802100122480a206164645f6d6f72655f6578636c616d6174696f6e5f6d61726b735f636f64652d1224080112206164645f6d6f72655f6578636c616d6174696f6e5f6d61726b735f636f64652d2a0608c0b89fdc0532146164645f6d6f72655f6578636c616d6174696f6e38014a067369676e6564"}, + "327b0a790802100122480a206164645f6d6f72655f6578636c616d6174696f6e5f6d61726b735f636f64652d1224080112206164645f6d6f72655f6578636c616d6174696f6e5f6d61726b735f636f64652d2a0608c0b89fdc0532146164645f6d6f72655f6578636c616d6174696f6e38014a09657874656e73696f6e"}, {"HasVote", &tmcons.Message{Sum: &tmcons.Message_HasVote{ HasVote: &tmcons.HasVote{Height: 1, Round: 1, Type: tmproto.PrevoteType, Index: 1}}}, "3a080801100118012001"}, diff --git a/types/vote_test.go b/types/vote_test.go index 44a7b19aa..29f324aa8 100644 --- a/types/vote_test.go +++ b/types/vote_test.go @@ -133,7 +133,7 @@ func TestVoteSignBytesTestVectors(t *testing.T) { "test_chain_id", &Vote{ Height: 1, Round: 1, - Extension: []byte("signed"), + Extension: []byte("extension"), }, []byte{ 0x2e, // length