aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-08 23:48:39 +0800
committerobscuren <geffobscura@gmail.com>2015-01-08 23:48:39 +0800
commit5f958a582d1326ada1cb34b4c6578590a7c40e6c (patch)
treea63ecfe00d378bf766353479be1be97ce534fc72 /core
parente27237a03a3f0ab8dce37705701ed73de252e1f4 (diff)
downloaddexon-5f958a582d1326ada1cb34b4c6578590a7c40e6c.tar
dexon-5f958a582d1326ada1cb34b4c6578590a7c40e6c.tar.gz
dexon-5f958a582d1326ada1cb34b4c6578590a7c40e6c.tar.bz2
dexon-5f958a582d1326ada1cb34b4c6578590a7c40e6c.tar.lz
dexon-5f958a582d1326ada1cb34b4c6578590a7c40e6c.tar.xz
dexon-5f958a582d1326ada1cb34b4c6578590a7c40e6c.tar.zst
dexon-5f958a582d1326ada1cb34b4c6578590a7c40e6c.zip
fixed other tests to use hashes as well
Diffstat (limited to 'core')
-rw-r--r--core/chain_manager_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go
index 5bbc2db70..725352daf 100644
--- a/core/chain_manager_test.go
+++ b/core/chain_manager_test.go
@@ -5,7 +5,6 @@ import (
"fmt"
"os"
"path"
- "reflect"
"runtime"
"strconv"
"testing"
@@ -125,7 +124,7 @@ func TestChainMultipleInsertions(t *testing.T) {
<-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")
}
}