From 3f23456745b951ae2872ae4b6373278efa9fbc37 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 23 Oct 2019 17:33:47 -0500 Subject: [PATCH] fix tests --- consensus/reactor_test.go | 2 +- crypto/merkle/simple_proof_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/reactor_test.go b/consensus/reactor_test.go index 784c86296..08bc90c66 100644 --- a/consensus/reactor_test.go +++ b/consensus/reactor_test.go @@ -689,7 +689,7 @@ func TestNewValidBlockMessageValidateBasic(t *testing.T) { }, { func(msg *NewValidBlockMessage) { msg.BlockParts = cmn.NewBitArray(types.MaxBlockPartsCount + 1) }, - "BlockParts bit array size 1601 not equal to BlockPartsHeader.Total 1", + "BlockParts bit array size 1602 not equal to BlockPartsHeader.Total 1", }, } diff --git a/crypto/merkle/simple_proof_test.go b/crypto/merkle/simple_proof_test.go index 521bf4a35..1175ce3cc 100644 --- a/crypto/merkle/simple_proof_test.go +++ b/crypto/merkle/simple_proof_test.go @@ -16,7 +16,7 @@ func TestSimpleProofValidateBasic(t *testing.T) { {"Negative Total", func(sp *SimpleProof) { sp.Total = -1 }, "negative Total"}, {"Negative Index", func(sp *SimpleProof) { sp.Index = -1 }, "negative Index"}, {"Invalid LeafHash", func(sp *SimpleProof) { sp.LeafHash = make([]byte, 10) }, "expected LeafHash size to be 32, got 10"}, - {"Too many Aunts", func(sp *SimpleProof) { sp.Aunts = make([][]byte, maxAunts+1) }, "expected no more than 30000 aunts, got 30001"}, + {"Too many Aunts", func(sp *SimpleProof) { sp.Aunts = make([][]byte, maxAunts+1) }, "expected no more than 101 aunts, got 101"}, {"Invalid Aunt", func(sp *SimpleProof) { sp.Aunts[0] = make([]byte, 10) }, "expected Aunts#0 size to be 32, got 10"}, }