From a900f2b441fc0247e012ee30a65d72c7b33a7352 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期三, 26 六月 2019 19:45:50 +0800 Subject: [PATCH] rm test file --- /dev/null | 29 ----------------------------- 1 files changed, 0 insertions(+), 29 deletions(-) diff --git a/service/FaceSdkService_test.go b/service/FaceSdkService_test.go deleted file mode 100644 index 6c190df..0000000 --- a/service/FaceSdkService_test.go +++ /dev/null @@ -1,29 +0,0 @@ -package service - -import ( - "basic.com/pubsub/protomsg.git" - "github.com/satori/go.uuid" - "io/ioutil" - "testing" - "time" -) - -func TestPushImgMsg(t *testing.T) { - InitService() - imgData := readImgFile() - for { - PushImgMsg(protomsg.Recvmsg{ - Id:uuid.NewV4().String(), - Addr:"", - Picdata:imgData, - }) - - time.Sleep(5*time.Second) - } -} - -func readImgFile() []byte{ - filePath := "/home/user/workspace/timg.jpg" - bytes, _ := ioutil.ReadFile(filePath) - return bytes -} -- Gitblit v1.8.0