This commit is contained in:
邹宗楠
2023-12-08 11:35:30 +08:00
parent 53e5959a28
commit ba826f771c
3 changed files with 11 additions and 4 deletions

View File

@@ -69,7 +69,14 @@ func TestOrderReceived(t *testing.T) {
}
func TestOrderConfirm(t *testing.T) {
err := api.OrderConfirm(27058923254735296)
err := api.OrderConfirm(2000844470023437537)
if utils.IsErrMatch(err, utils.Int2Str(ErrCodeOpFailed), []string{
"订单已经确认过了",
}) {
err = nil
} else {
globals.SugarLogger.Warnf("mtwm AcceptOrRefuseOrder orderID:%s failed with err:%v", "1", err)
}
if err != nil {
t.Fatal(err)
}