more linter

This commit is contained in:
Geoff Stuart 2022-11-25 16:44:43 -05:00
parent f04aca767f
commit e6e50ee9f7
3 changed files with 5 additions and 1 deletions

View File

@ -274,7 +274,7 @@ func FullNodeProxy[T api.FullNode](ins []T, outstr *api.FullNodeStruct) {
}
total := len(rins)
result, _ := retry.Retry(ctx, 5, initialBackoff, errorsToRetry, func() (results []reflect.Value, err2 error) {
result, _ := retry.Retry(ctx, 5, initialBackoff, errorsToRetry, func() ([]reflect.Value, error) {
curr = (curr + 1) % total
result := fns[curr].Call(args)

View File

@ -144,6 +144,7 @@ func TestGetAllocationForPendingDeal(t *testing.T) {
require.NoError(t, err)
sig, err := api.WalletSign(ctx, verifiedClientAddr, serializedProposal.Bytes())
require.NoError(t, err)
publishDealParams := markettypes.PublishStorageDealsParams{
Deals: []markettypes.ClientDealProposal{{
@ -194,5 +195,6 @@ func TestGetAllocationForPendingDeal(t *testing.T) {
}
marketDeal, err := api.StateMarketStorageDeal(ctx, dealIds[0], types.EmptyTSK)
require.NoError(t, err)
require.Equal(t, marketDeal.State.SectorStartEpoch, abi.ChainEpoch(-1))
}

View File

@ -183,6 +183,7 @@ func TestNoRemoveDatacapFromVerifreg(t *testing.T) {
require.NoError(t, err)
sig, err := clientApi.WalletSign(ctx, verifiedClientAddr, serializedProposal.Bytes())
require.NoError(t, err)
publishDealParams := markettypes.PublishStorageDealsParams{
Deals: []markettypes.ClientDealProposal{{
@ -274,6 +275,7 @@ func TestNoRemoveDatacapFromVerifreg(t *testing.T) {
Params: params,
Value: big.Zero(),
}, types.EmptyTSK)
require.Error(t, err)
require.False(t, callResult.MsgRct.ExitCode.IsSuccess())
verifregDatacapAfter, err := clientApi.StateVerifiedClientStatus(ctx, builtin.VerifiedRegistryActorAddr, types.EmptyTSK)