From aade8e8edb30fc90e3c49af28f4340eeb16ba2de Mon Sep 17 00:00:00 2001 From: bandl <1658002533@qq.com> Date: Sun, 17 Oct 2021 14:49:55 +0800 Subject: [PATCH] test(gateway): remove test --- gateway/cmd/gateway_test.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 gateway/cmd/gateway_test.go diff --git a/gateway/cmd/gateway_test.go b/gateway/cmd/gateway_test.go deleted file mode 100644 index fe25ac4..0000000 --- a/gateway/cmd/gateway_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package cmd - -import ( - "context" - "fmt" - "testing" - - "gitee.com/timedb/wheatCache/pkg/proto" - "github.com/stretchr/testify/require" - "google.golang.org/grpc" -) - -func TestContextChannel(t *testing.T) { - cxt := context.Background() - _, ctxChannel := context.WithCancel(cxt) - ctxChannel() - ctxChannel() -} - -func TestGateway_Master(t *testing.T) { - comm, err := grpc.Dial("127.0.0.1:5891", grpc.WithInsecure()) - require.NoError(t, err) - ctx := context.Background() - cli := proto.NewCommServerClient(comm) - resp, err := cli.Set(ctx, &proto.SetRequest{ - Key: &proto.BaseKey{ - Key: "aa", - }, - Val: "awd", - }) - require.NoError(t, err) - fmt.Printf(resp.Result) - -}