Commit 0a2514f5 authored by linj's avatar linj Committed by vipwzw

fix test

parent 9cdc80bf
...@@ -43,7 +43,8 @@ func (testCase *DependBuyCase) SendCommand(packID string) (types.PackFunc, error ...@@ -43,7 +43,8 @@ func (testCase *DependBuyCase) SendCommand(packID string) (types.PackFunc, error
if len(testCase.SellID) == 0 { if len(testCase.SellID) == 0 {
return nil, errors.New("depend sell case failed, Can't buy without sell id") return nil, errors.New("depend sell case failed, Can't buy without sell id")
} }
testCase.Command = fmt.Sprintf("%s -s %s", testCase.Command, testCase.SellID) sellID := testCase.SellID[len("mavl-trade-sell-"):]
testCase.Command = fmt.Sprintf("%s -s %s", testCase.Command, sellID)
return types.DefaultSend(&testCase.BuyCase, &BuyPack{}, packID) return types.DefaultSend(&testCase.BuyCase, &BuyPack{}, packID)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment