test ebaiapi.OrderCancel

This commit is contained in:
gazebo
2020-01-19 17:17:29 +08:00
parent 333c62d16d
commit 06c1147292

View File

@@ -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)
}
}