Fix lint issue
This commit is contained in:
parent
0155a31d1f
commit
f8a14184c7
@ -41,13 +41,16 @@ func MineUntilBlock(ctx context.Context, t *testing.T, sn TestStorageNode, cb fu
|
|||||||
var success bool
|
var success bool
|
||||||
var err error
|
var err error
|
||||||
wait := make(chan struct{})
|
wait := make(chan struct{})
|
||||||
sn.MineOne(ctx, miner.MineReq{
|
mineErr := sn.MineOne(ctx, miner.MineReq{
|
||||||
Done: func(win bool, e error) {
|
Done: func(win bool, e error) {
|
||||||
success = win
|
success = win
|
||||||
err = e
|
err = e
|
||||||
wait <- struct{}{}
|
wait <- struct{}{}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
if mineErr != nil {
|
||||||
|
t.Fatal(mineErr)
|
||||||
|
}
|
||||||
<-wait
|
<-wait
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user