- status judge.
This commit is contained in:
@@ -34,7 +34,7 @@ func TestCreateWaybill(t *testing.T) {
|
||||
VendorOrderID: orderID,
|
||||
WaybillVendorID: model.VendorIDDada,
|
||||
}
|
||||
err = c.CancelWaybill(bill)
|
||||
err = c.CancelWaybill(bill, partner.CancelWaybillReasonOther, "")
|
||||
if err != nil {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ func TestCancelWaybill(t *testing.T) {
|
||||
VendorWaybillID2: "55",
|
||||
}
|
||||
c := new(DeliveryHandler)
|
||||
if err := c.CancelWaybill(bill); err != nil {
|
||||
if err := c.CancelWaybill(bill, partner.CancelWaybillReasonOther, ""); err != nil {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ func TestSwitch2SelfDeliver(t *testing.T) {
|
||||
if order, err := partner.CurOrderManager.LoadOrder(orderID, model.VendorIDJD); err == nil {
|
||||
// globals.SugarLogger.Debug(order)
|
||||
c := new(PurchaseHandler)
|
||||
if err = c.Swtich2SelfDeliver(order); err == nil {
|
||||
if err = c.Swtich2SelfDeliver(order, ""); err == nil {
|
||||
} else {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user