From 5b800932ae33e571edfdc21304c2185e17f69a38 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 27 四月 2021 17:45:41 +0800 Subject: [PATCH] add api Cleanup. --- api/bhsgo/bhome_node_test.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/api/bhsgo/bhome_node_test.go b/api/bhsgo/bhome_node_test.go index cc1966e..d2720a3 100644 --- a/api/bhsgo/bhome_node_test.go +++ b/api/bhsgo/bhome_node_test.go @@ -27,6 +27,7 @@ proc := bh.ProcInfo{} proc.ProcId = []byte(proc_id) reply := bh.MsgCommonReply{} + defer Cleanup() StartWorker(ClientCallback, ServerCallback, SubDataCallback) @@ -35,7 +36,6 @@ fmt.Println("register ok") } else { fmt.Println("register failed") - t.Log("register error") return } r = Unregister(&proc, &reply, 1000) -- Gitblit v1.8.0