From 1fbfef2a51db4a3bac9d8a5b87af94a40a913b7a Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期日, 25 四月 2021 15:33:40 +0800 Subject: [PATCH] change mqid from uuid to uint64. --- api/bhsgo/bhome_node_test.go | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/api/bhsgo/bhome_node_test.go b/api/bhsgo/bhome_node_test.go index 9f2b324..cc1966e 100644 --- a/api/bhsgo/bhome_node_test.go +++ b/api/bhsgo/bhome_node_test.go @@ -1,11 +1,12 @@ package bhsgo import ( - bh "bhshmq/proto/source/bhome_msg" "fmt" "testing" "time" "unsafe" + + bh "basic.com/valib/bhshmq.git/proto/source/bhome_msg" ) func ServerCallback(src unsafe.Pointer, proc_id *string, req *bh.MsgRequestTopic) { @@ -37,6 +38,21 @@ t.Log("register error") return } + r = Unregister(&proc, &reply, 1000) + if r { + fmt.Println("Unregister ok") + } else { + fmt.Println("Unregister failed") + } + + r = Register(&proc, &reply, 1000) + if r { + fmt.Println("register ok") + } else { + fmt.Println("register failed") + t.Log("register error") + return + } r = HeartbeatEasy(1000) if r { -- Gitblit v1.8.0