test order zltx

This commit is contained in:
李子铭 2024-07-01 18:09:38 +08:00
parent 473728e000
commit 0e1b13b26e
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ var appId = "23329"
var baseUri = "http://test.openapi.1688sup.cn" var baseUri = "http://test.openapi.1688sup.cn"
var notifyUrl = "http://test.openapi.1688sup.cn" var notifyUrl = "http://test.openapi.1688sup.cn"
var lsxd = &ZltxService{} var zltx = &ZltxService{}
func TestOrder(t *testing.T) { func TestOrder(t *testing.T) {
request := &proto.OrderRequest{ request := &proto.OrderRequest{
@ -34,7 +34,7 @@ func TestOrder(t *testing.T) {
}, },
} }
t.Run("TestOrder", func(t *testing.T) { t.Run("TestOrder", func(t *testing.T) {
got, err := lsxd.Order(context.Background(), request) got, err := zltx.Order(context.Background(), request)
if err != nil { if err != nil {
t.Errorf("Order() error = %v", err) t.Errorf("Order() error = %v", err)
return return