Files
full/module/ec/order/test/rpc/coupon_test.go

24 lines
364 B
Go
Raw Normal View History

//go:build integration
package rpc
import (
"fmt"
"testing"
pb "bsm/full/module/ec/order/pb"
)
func TestByStatus(t *testing.T) {
coon, ctx := GetCoon()
clent := pb.NewCouponClient(coon)
defer coon.Close()
res, err := clent.ByStatus(ctx, &pb.Status{
Status: 1,
})
if err != nil {
fmt.Println(err)
}
fmt.Printf("返回的测试消息: %s", res)
}