[stream] fix long range test errors

pull/3597/head
Jacky Wang 4 years ago
parent dd0a109ba7
commit 50bb0d5122
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 8
      hmy/downloader/longrange_test.go

@ -129,7 +129,7 @@ func TestLrSyncIter_FetchAndInsertBlocks(t *testing.T) {
lsi := &lrSyncIter{ lsi := &lrSyncIter{
bc: chain, bc: chain,
ih: &testInsertHelper{chain}, ih: &testInsertHelper{chain},
d: &Downloader{}, d: &Downloader{bc: chain},
p: protocol, p: protocol,
gbm: nil, gbm: nil,
config: Config{ config: Config{
@ -162,7 +162,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_ErrRequest(t *testing.T) {
lsi := &lrSyncIter{ lsi := &lrSyncIter{
bc: chain, bc: chain,
ih: &testInsertHelper{chain}, ih: &testInsertHelper{chain},
d: &Downloader{}, d: &Downloader{bc: chain},
p: protocol, p: protocol,
gbm: nil, gbm: nil,
config: Config{ config: Config{
@ -195,7 +195,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_ErrInsert(t *testing.T) {
lsi := &lrSyncIter{ lsi := &lrSyncIter{
bc: chain, bc: chain,
ih: &testInsertHelper{chain}, ih: &testInsertHelper{chain},
d: &Downloader{}, d: &Downloader{bc: chain},
p: protocol, p: protocol,
gbm: nil, gbm: nil,
config: Config{ config: Config{
@ -228,7 +228,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_RandomErr(t *testing.T) {
lsi := &lrSyncIter{ lsi := &lrSyncIter{
bc: chain, bc: chain,
ih: &testInsertHelper{chain}, ih: &testInsertHelper{chain},
d: &Downloader{}, d: &Downloader{bc: chain},
p: protocol, p: protocol,
gbm: nil, gbm: nil,
config: Config{ config: Config{

Loading…
Cancel
Save