mock 满足招行第一次失败,二次成功
This commit is contained in:
parent
bb4b857d9c
commit
3e9376ec56
|
|
@ -42,7 +42,7 @@ func (v *VoucherBiz) order(ctx context.Context, req *bo.OrderCreateReqBo, produc
|
|||
return nil, err3
|
||||
}
|
||||
|
||||
return order, nil
|
||||
return order, fmt.Errorf("mock 满足招行第一次失败,二次成功")
|
||||
|
||||
return order, v.success(ctx, order, voucherNo)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue