From 981ca0fa022524fd04af988bc798f2d697d31548 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 19 五月 2021 14:33:10 +0800
Subject: [PATCH] hide .so symbols, avoid 2+ protobuf link conflict.
---
api/bhsgo/bhome_node_test.go | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/api/bhsgo/bhome_node_test.go b/api/bhsgo/bhome_node_test.go
index d2720a3..756b752 100644
--- a/api/bhsgo/bhome_node_test.go
+++ b/api/bhsgo/bhome_node_test.go
@@ -29,8 +29,6 @@
reply := bh.MsgCommonReply{}
defer Cleanup()
- StartWorker(ClientCallback, ServerCallback, SubDataCallback)
-
r := Register(&proc, &reply, 1000)
if r {
fmt.Println("register ok")
@@ -53,6 +51,8 @@
t.Log("register error")
return
}
+
+ StartWorker(ClientCallback, ServerCallback, SubDataCallback)
r = HeartbeatEasy(1000)
if r {
@@ -81,7 +81,7 @@
pid := ""
rr := bh.MsgRequestTopicReply{}
dest := bh.BHAddress{}
- for i := 0; i < 10000; i++ {
+ for i := 0; i < 100; i++ {
if Request(&dest, &req, &pid, &rr, 3000) {
fmt.Println("server:" + pid + ", reply:" + string(rr.Data))
} else {
--
Gitblit v1.8.0