refactor: reorganize modules and add Linux build tooling
This commit is contained in:
23
module/ec/order/test/rpc/coupon_test.go
Normal file
23
module/ec/order/test/rpc/coupon_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
//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)
|
||||
}
|
||||
Reference in New Issue
Block a user