mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 00:43:46 +00:00
Minor changes
This commit is contained in:
parent
2d4ef67849
commit
904f8b52ce
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue