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) 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 curr = (curr + 1) % total
result := fns[curr].Call(args) result := fns[curr].Call(args)

View File

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

View File

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