address another spot with the more certain mining fix

This commit is contained in:
whyrusleeping 2020-08-25 17:06:45 -07:00
parent d0585ca7bb
commit 91bb559bdf

View File

@ -419,13 +419,13 @@ func MockSbBuilder(t *testing.T, nFull int, storage []test.StorageMiner) ([]test
var wait sync.Mutex
wait.Lock()
_ = storers[0].MineOne(ctx, miner2.MineReq{Done: func(bool, error) {
test.MineUntilBlock(ctx, t, storers[0], func() {
wait.Unlock()
}})
})
wait.Lock()
_ = storers[0].MineOne(ctx, miner2.MineReq{Done: func(bool, error) {
test.MineUntilBlock(ctx, t, storers[0], func() {
wait.Unlock()
}})
})
wait.Lock()
}