test ebaiapi.OrderCancel
This commit is contained in:
@@ -16,7 +16,7 @@ func TestOrderGet(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOrderGet2(t *testing.T) {
|
func TestOrderGet2(t *testing.T) {
|
||||||
result, err := api.OrderGet2("1576493808229489038")
|
result, err := api.OrderGet2("1577252398158729707")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
} else {
|
} else {
|
||||||
@@ -42,7 +42,7 @@ func TestOrderList(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOrderListAll(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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
} else {
|
} else {
|
||||||
@@ -145,3 +145,10 @@ func TestOrderPartRefund(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestOrderCancel(t *testing.T) {
|
||||||
|
err := api.OrderCancel("2122788271803194389", CancelTypeCustom, "admin")
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user