Commit 5f958a58 authored by obscuren's avatar obscuren

fixed other tests to use hashes as well

parent e27237a0
...@@ -5,7 +5,6 @@ import ( ...@@ -5,7 +5,6 @@ import (
"fmt" "fmt"
"os" "os"
"path" "path"
"reflect"
"runtime" "runtime"
"strconv" "strconv"
"testing" "testing"
...@@ -125,7 +124,7 @@ func TestChainMultipleInsertions(t *testing.T) { ...@@ -125,7 +124,7 @@ func TestChainMultipleInsertions(t *testing.T) {
<-done <-done
} }
if !reflect.DeepEqual(chains[longest][len(chains[longest])-1], chainMan.CurrentBlock()) { if !bytes.Equal(chains[longest][len(chains[longest])-1].Hash(), chainMan.CurrentBlock().Hash()) {
t.Error("Invalid canonical chain") t.Error("Invalid canonical chain")
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment