From 50bb0d512201ef6d35207c29a90d9f5473e59961 Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Fri, 19 Mar 2021 01:55:21 -0700 Subject: [PATCH] [stream] fix long range test errors --- hmy/downloader/longrange_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hmy/downloader/longrange_test.go b/hmy/downloader/longrange_test.go index 5ac8ba2e8..1aa1323bb 100644 --- a/hmy/downloader/longrange_test.go +++ b/hmy/downloader/longrange_test.go @@ -129,7 +129,7 @@ func TestLrSyncIter_FetchAndInsertBlocks(t *testing.T) { lsi := &lrSyncIter{ bc: chain, ih: &testInsertHelper{chain}, - d: &Downloader{}, + d: &Downloader{bc: chain}, p: protocol, gbm: nil, config: Config{ @@ -162,7 +162,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_ErrRequest(t *testing.T) { lsi := &lrSyncIter{ bc: chain, ih: &testInsertHelper{chain}, - d: &Downloader{}, + d: &Downloader{bc: chain}, p: protocol, gbm: nil, config: Config{ @@ -195,7 +195,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_ErrInsert(t *testing.T) { lsi := &lrSyncIter{ bc: chain, ih: &testInsertHelper{chain}, - d: &Downloader{}, + d: &Downloader{bc: chain}, p: protocol, gbm: nil, config: Config{ @@ -228,7 +228,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_RandomErr(t *testing.T) { lsi := &lrSyncIter{ bc: chain, ih: &testInsertHelper{chain}, - d: &Downloader{}, + d: &Downloader{bc: chain}, p: protocol, gbm: nil, config: Config{