fail test if deal errors
This commit is contained in:
parent
41d13b12a0
commit
480e7899ef
@ -72,10 +72,13 @@ func TestDealFlow(t *testing.T, b APIBuilder) {
|
||||
t.Fatal("deal rejected")
|
||||
case api.DealFailed:
|
||||
t.Fatal("deal failed")
|
||||
case api.DealError:
|
||||
t.Fatal("deal errored")
|
||||
case api.DealComplete:
|
||||
fmt.Println("COMPLETE", di)
|
||||
break
|
||||
}
|
||||
fmt.Println("Deal state: ", di.State)
|
||||
time.Sleep(time.Second / 2)
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
const sectorSize = 1024
|
||||
|
||||
func TestSealAndVerify(t *testing.T) {
|
||||
//t.Skip("this is slow")
|
||||
t.Skip("this is slow")
|
||||
//os.Setenv("BELLMAN_NO_GPU", "1")
|
||||
|
||||
build.SectorSizes = []uint64{sectorSize}
|
||||
|
@ -92,7 +92,6 @@ func (a *API) ClientStartDeal(ctx context.Context, data cid.Cid, miner address.A
|
||||
}
|
||||
|
||||
c, err := a.DealClient.Start(ctx, proposal)
|
||||
// TODO: send updated voucher with PaymentVerifySector for cheaper validation (validate the sector the miner sent us first!)
|
||||
if err != nil {
|
||||
return nil, xerrors.Errorf("failed to start deal: %w", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user