From f8a14184c7f8975a022e0a26c3eac553d5d27cca Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 26 Aug 2020 10:05:03 -0700 Subject: [PATCH] Fix lint issue --- api/test/util.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/test/util.go b/api/test/util.go index 7d2e9e95b..88e0e0fe6 100644 --- a/api/test/util.go +++ b/api/test/util.go @@ -41,13 +41,16 @@ func MineUntilBlock(ctx context.Context, t *testing.T, sn TestStorageNode, cb fu var success bool var err error wait := make(chan struct{}) - sn.MineOne(ctx, miner.MineReq{ + mineErr := sn.MineOne(ctx, miner.MineReq{ Done: func(win bool, e error) { success = win err = e wait <- struct{}{} }, }) + if mineErr != nil { + t.Fatal(mineErr) + } <-wait if err != nil { t.Fatal(err)