@@ -90,6 +90,7 @@ func TestFetcherReadWholeBlock(t *testing.T) {
90
90
91
91
host := mocks .NewMockHost (ctrl )
92
92
fs .(* mocks.MockCore ).EXPECT ().Host ().AnyTimes ().Return (host )
93
+ host .EXPECT ().Provide (gomock .Any (), block .Cid ())
93
94
94
95
peerCh := make (chan libp2pPeerstore.PeerInfo , 1 )
95
96
peerCh <- libp2pPeerstore.PeerInfo {}
@@ -123,6 +124,7 @@ func TestFetcherReadOverCap(t *testing.T) {
123
124
124
125
host := mocks .NewMockHost (ctrl )
125
126
fs .(* mocks.MockCore ).EXPECT ().Host ().AnyTimes ().Return (host )
127
+ host .EXPECT ().Provide (gomock .Any (), block .Cid ())
126
128
127
129
peerCh := make (chan libp2pPeerstore.PeerInfo , 1 )
128
130
peerCh <- libp2pPeerstore.PeerInfo {}
@@ -166,6 +168,7 @@ func TestFetcherReadMidBlock(t *testing.T) {
166
168
peerCh := make (chan libp2pPeerstore.PeerInfo , 1 )
167
169
peerCh <- libp2pPeerstore.PeerInfo {}
168
170
171
+ host .EXPECT ().Provide (gomock .Any (), block .Cid ())
169
172
host .EXPECT ().FindProviders (gomock .Any (), gomock .Any ()).Return ((<- chan libp2pPeerstore.PeerInfo )(peerCh ))
170
173
host .EXPECT ().CreateBlockStream (gomock .Any (), gomock .Any (), gomock .Any ()).Return (bytes .NewReader (block .RawData ()), nil )
171
174
@@ -219,6 +222,7 @@ func TestFetcherReadBetweenBlocks(t *testing.T) {
219
222
220
223
host := mocks .NewMockHost (ctrl )
221
224
fs .(* mocks.MockCore ).EXPECT ().Host ().AnyTimes ().Return (host )
225
+ host .EXPECT ().Provide (gomock .Any (), gomock .Any ()).AnyTimes ()
222
226
223
227
peerCh := make (chan libp2pPeerstore.PeerInfo , 2 )
224
228
peerCh <- libp2pPeerstore.PeerInfo {}
@@ -275,6 +279,7 @@ func TestFetcherReadFinalBlock(t *testing.T) {
275
279
276
280
host := mocks .NewMockHost (ctrl )
277
281
fs .(* mocks.MockCore ).EXPECT ().Host ().AnyTimes ().Return (host )
282
+ host .EXPECT ().Provide (gomock .Any (), gomock .Any ()).AnyTimes ()
278
283
279
284
peerCh := make (chan libp2pPeerstore.PeerInfo , 2 )
280
285
peerCh <- libp2pPeerstore.PeerInfo {}
@@ -331,6 +336,7 @@ func TestFetcherBigBlocks(t *testing.T) {
331
336
332
337
host := mocks .NewMockHost (ctrl )
333
338
fs .(* mocks.MockCore ).EXPECT ().Host ().AnyTimes ().Return (host )
339
+ host .EXPECT ().Provide (gomock .Any (), gomock .Any ()).AnyTimes ()
334
340
335
341
peerCh := make (chan libp2pPeerstore.PeerInfo , 2 )
336
342
peerCh <- libp2pPeerstore.PeerInfo {}
@@ -521,6 +527,7 @@ func TestFetcherDownloadInvalidData(t *testing.T) {
521
527
522
528
host := mocks .NewMockHost (ctrl )
523
529
fs .(* mocks.MockCore ).EXPECT ().Host ().AnyTimes ().Return (host )
530
+ host .EXPECT ().Provide (gomock .Any (), gomock .Any ()).AnyTimes ()
524
531
525
532
peerCh := make (chan libp2pPeerstore.PeerInfo , 2 )
526
533
peerCh <- libp2pPeerstore.PeerInfo {}
@@ -560,6 +567,7 @@ func TestFetcherDownloadShortRead(t *testing.T) {
560
567
561
568
host := mocks .NewMockHost (ctrl )
562
569
fs .(* mocks.MockCore ).EXPECT ().Host ().AnyTimes ().Return (host )
570
+ host .EXPECT ().Provide (gomock .Any (), gomock .Any ()).AnyTimes ()
563
571
564
572
peerCh := make (chan libp2pPeerstore.PeerInfo , 2 )
565
573
peerCh <- libp2pPeerstore.PeerInfo {}
@@ -599,6 +607,7 @@ func TestFetcherDownloadErrorCreateStream(t *testing.T) {
599
607
600
608
host := mocks .NewMockHost (ctrl )
601
609
fs .(* mocks.MockCore ).EXPECT ().Host ().AnyTimes ().Return (host )
610
+ host .EXPECT ().Provide (gomock .Any (), gomock .Any ()).AnyTimes ()
602
611
603
612
peerCh := make (chan libp2pPeerstore.PeerInfo , 2 )
604
613
peerCh <- libp2pPeerstore.PeerInfo {}
0 commit comments