@@ -7,6 +7,7 @@ SPDX-License-Identifier: Apache-2.0
77package smartbft_test
88
99import (
10+ "context"
1011 "os"
1112 "sync"
1213 "testing"
@@ -106,6 +107,7 @@ func TestBFTSynchronizer(t *testing.T) {
106107 LocalConfigCluster : localconfig.Cluster {},
107108 BlockPullerFactory : bpf ,
108109 Logger : flogging .MustGetLogger ("test.smartbft" ),
110+ Ctx : context .Background (),
109111 }
110112
111113 require .NotNil (t , bftSynchronizer )
@@ -155,6 +157,7 @@ func TestBFTSynchronizer(t *testing.T) {
155157 LocalConfigCluster : localconfig.Cluster {},
156158 BlockPullerFactory : bpf ,
157159 Logger : flogging .MustGetLogger ("test.smartbft" ),
160+ Ctx : context .Background (),
158161 }
159162
160163 require .NotNil (t , bftSynchronizer )
@@ -201,6 +204,7 @@ func TestBFTSynchronizer(t *testing.T) {
201204 LocalConfigCluster : localconfig.Cluster {},
202205 BlockPullerFactory : bpf ,
203206 Logger : flogging .MustGetLogger ("test.smartbft" ),
207+ Ctx : context .Background (),
204208 }
205209
206210 require .NotNil (t , bftSynchronizer )
@@ -261,6 +265,7 @@ func TestBFTSynchronizer(t *testing.T) {
261265 LocalConfigCluster : localconfig.Cluster {},
262266 BlockPullerFactory : bpf ,
263267 Logger : flogging .MustGetLogger ("test.smartbft" ),
268+ Ctx : context .Background (),
264269 }
265270
266271 require .NotNil (t , bftSynchronizer )
@@ -370,6 +375,7 @@ func TestBFTSynchronizer(t *testing.T) {
370375 VerifierFactory : fakeVerifierFactory ,
371376 BFTDelivererFactory : fakeBFTDelivererFactory ,
372377 Logger : flogging .MustGetLogger ("test.smartbft" ),
378+ Ctx : context .Background (),
373379 }
374380
375381 require .NotNil (t , bftSynchronizer )
@@ -506,6 +512,7 @@ func TestBFTSynchronizer(t *testing.T) {
506512 VerifierFactory : fakeVerifierFactory ,
507513 BFTDelivererFactory : fakeBFTDelivererFactory ,
508514 Logger : flogging .MustGetLogger ("test.smartbft" ),
515+ Ctx : context .Background (),
509516 }
510517 require .NotNil (t , bftSynchronizer )
511518
0 commit comments