good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5f958a58 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

fixed other tests to use hashes as well

parent e27237a0
Branches
Tags v1.3.0
No related merge requests found
...@@ -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")
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment