Skip to content

Commit f8a1418

Browse files
committed
Fix lint issue
1 parent 0155a31 commit f8a1418

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/test/util.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ func MineUntilBlock(ctx context.Context, t *testing.T, sn TestStorageNode, cb fu
4141
var success bool
4242
var err error
4343
wait := make(chan struct{})
44-
sn.MineOne(ctx, miner.MineReq{
44+
mineErr := sn.MineOne(ctx, miner.MineReq{
4545
Done: func(win bool, e error) {
4646
success = win
4747
err = e
4848
wait <- struct{}{}
4949
},
5050
})
51+
if mineErr != nil {
52+
t.Fatal(mineErr)
53+
}
5154
<-wait
5255
if err != nil {
5356
t.Fatal(err)

0 commit comments

Comments
 (0)