aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-15 18:26:34 +0800
committerobscuren <geffobscura@gmail.com>2015-05-15 18:47:32 +0800
commitcfb2b51b749a5897eb47bee15e67a0f9d850bfbd (patch)
tree16469a8163d6ba0c385c4b728b17d4edd4b35739 /eth/downloader/downloader_test.go
parentf6669db0010892d06722ae992baaf4a228d4467a (diff)
downloaddexon-cfb2b51b749a5897eb47bee15e67a0f9d850bfbd.tar
dexon-cfb2b51b749a5897eb47bee15e67a0f9d850bfbd.tar.gz
dexon-cfb2b51b749a5897eb47bee15e67a0f9d850bfbd.tar.bz2
dexon-cfb2b51b749a5897eb47bee15e67a0f9d850bfbd.tar.lz
dexon-cfb2b51b749a5897eb47bee15e67a0f9d850bfbd.tar.xz
dexon-cfb2b51b749a5897eb47bee15e67a0f9d850bfbd.tar.zst
dexon-cfb2b51b749a5897eb47bee15e67a0f9d850bfbd.zip
eth/downloader: fixed test
Diffstat (limited to 'eth/downloader/downloader_test.go')
-rw-r--r--eth/downloader/downloader_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index cfa6257a3..50fe00d42 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -8,6 +8,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
+ "github.com/ethereum/go-ethereum/event"
)
var (
@@ -67,7 +68,8 @@ func newTester(t *testing.T, hashes []common.Hash, blocks map[common.Hash]*types
done: make(chan bool),
}
- downloader := New(tester.hasBlock, tester.getBlock)
+ var mux event.TypeMux
+ downloader := New(&mux, tester.hasBlock, tester.getBlock)
tester.downloader = downloader
return tester