Commit dbac64e7 authored by linj's avatar linj Committed by vipwzw

fix test

parent bcee2ee6
......@@ -28,7 +28,7 @@ func (testCase *unfreezeTerminateCase) SendCommand(packID string) (types.PackFun
if testCase.info == nil || len(testCase.info.unFreezeID) == 0 {
return nil, fmt.Errorf("can't withdraw without unFreezeID")
}
testCase.Command = fmt.Sprintf("%s --id %s", testCase.Command, testCase.info.unFreezeID)
testCase.Command = fmt.Sprintf("%s --id %s", testCase.Command, testCase.info.unFreezeID[len("mavl-unfreeze-"):])
return types.DefaultSend(testCase, &unfreezeTerminatePack{}, packID)
}
......
......@@ -38,7 +38,7 @@ func (testCase *unfreezeWithdrawCase) SetDependData(depData interface{}) {
if info, ok := depData.(*unfreezeInfo); ok && info != nil {
testCase.info = info
testCase.Command = fmt.Sprintf("%s --id %s", testCase.Command, testCase.info.unFreezeID)
testCase.Command = fmt.Sprintf("%s --id %s", testCase.Command, testCase.info.unFreezeID[len("mavl-unfreeze-"):])
}
}
......
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