From 06c1147292321e35214bfa6cfed44182a78e77b3 Mon Sep 17 00:00:00 2001 From: gazebo Date: Sun, 19 Jan 2020 17:17:29 +0800 Subject: [PATCH] test ebaiapi.OrderCancel --- platformapi/ebaiapi/order_test.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/platformapi/ebaiapi/order_test.go b/platformapi/ebaiapi/order_test.go index 7fff85b5..d4b0e8ce 100644 --- a/platformapi/ebaiapi/order_test.go +++ b/platformapi/ebaiapi/order_test.go @@ -16,7 +16,7 @@ func TestOrderGet(t *testing.T) { } func TestOrderGet2(t *testing.T) { - result, err := api.OrderGet2("1576493808229489038") + result, err := api.OrderGet2("1577252398158729707") if err != nil { t.Fatal(err) } else { @@ -42,7 +42,7 @@ func TestOrderList(t *testing.T) { } func TestOrderListAll(t *testing.T) { - result, err := api.OrderListAll("", 32267089397, 1563379200, 1563465599, 0) + result, err := api.OrderListAll("", 32267184047, utils.Str2Time("2019-12-25").Unix(), utils.Str2Time("2019-12-26").Unix(), 0) if err != nil { t.Fatal(err) } else { @@ -145,3 +145,10 @@ func TestOrderPartRefund(t *testing.T) { t.Fatal(err) } } + +func TestOrderCancel(t *testing.T) { + err := api.OrderCancel("2122788271803194389", CancelTypeCustom, "admin") + if err != nil { + t.Fatal(err) + } +}