good morning!!!!

Skip to content
Snippets Groups Projects
Commit 904f8b52 authored by Shivam Sharma's avatar Shivam Sharma
Browse files

Minor changes

parent 2d4ef678
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,14 @@ func TestChain2HeadEvent(t *testing.T) { ...@@ -69,6 +69,14 @@ func TestChain2HeadEvent(t *testing.T) {
if ev.Type != expect.Type { if ev.Type != expect.Type {
t.Fatalf("%d : type mismatch", i) 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++ { for j := 0; j < len(ev.OldChain); j++ {
if ev.OldChain[j].Hash() != expect.Removed[j] { if ev.OldChain[j].Hash() != expect.Removed[j] {
t.Fatalf("%d : Oldchain hashes Does Not Match", i) t.Fatalf("%d : Oldchain hashes Does Not Match", i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment