From 904f8b52ce8020a091fcece883428eac8c629f1b Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Fri, 21 Jan 2022 12:54:49 +0000 Subject: [PATCH] Minor changes --- core/blockchain_bor_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/blockchain_bor_test.go b/core/blockchain_bor_test.go index 4e6833ecd3..a30627675d 100644 --- a/core/blockchain_bor_test.go +++ b/core/blockchain_bor_test.go @@ -69,6 +69,14 @@ func TestChain2HeadEvent(t *testing.T) { if ev.Type != expect.Type { t.Fatalf("%d : type mismatch", i) } + + if len(ev.NewChain) != len(expect.Added) { + t.Fatalf("%d : Newchain and Added Array Size don't match", i) + } + if len(ev.OldChain) != len(expect.Removed) { + t.Fatalf("%d : Oldchain and Removed Array Size don't match", i) + } + for j := 0; j < len(ev.OldChain); j++ { if ev.OldChain[j].Hash() != expect.Removed[j] { t.Fatalf("%d : Oldchain hashes Does Not Match", i)