style(lint): fix lint issues
This commit is contained in:
parent
7519bdde42
commit
b010ac21d3
@ -185,7 +185,15 @@ func TestGetCurrentDealInfo(t *testing.T) {
|
|||||||
expectedError: xerrors.Errorf("Deal proposals did not match"),
|
expectedError: xerrors.Errorf("Deal proposals did not match"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for testCase, data := range testCases {
|
runTestCase := func(testCase string, data struct {
|
||||||
|
searchMessageLookup *api.MsgLookup
|
||||||
|
searchMessageErr error
|
||||||
|
marketDeals map[abi.DealID]*api.MarketDeal
|
||||||
|
publishCid *cid.Cid
|
||||||
|
expectedDealID abi.DealID
|
||||||
|
expectedMarketDeal *api.MarketDeal
|
||||||
|
expectedError error
|
||||||
|
}) {
|
||||||
t.Run(testCase, func(t *testing.T) {
|
t.Run(testCase, func(t *testing.T) {
|
||||||
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
@ -211,6 +219,9 @@ func TestGetCurrentDealInfo(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
for testCase, data := range testCases {
|
||||||
|
runTestCase(testCase, data)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type marketDealKey struct {
|
type marketDealKey struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user