lichao
2021-04-23 02ba913dc7bb5d711471b27f2ea23a897d0f2e28
api/bhsgo/bhome_node_test.go
@@ -1,7 +1,7 @@
package bhsgo
import (
   bh "bhshmq/proto/source/bhome_msg"
   bh "basic.com/valib/bhshmq.git/proto/source/bhome_msg"
   "fmt"
   "testing"
   "time"
@@ -64,8 +64,9 @@
   pid := ""
   rr := bh.MsgRequestTopicReply{}
   dest := bh.BHAddress{}
   for i := 0; i < 10000; i++ {
      if Request(&req, &pid, &rr, 3000) {
      if Request(&dest, &req, &pid, &rr, 3000) {
         fmt.Println("server:" + pid + ", reply:" + string(rr.Data))
      } else {
         e, s := GetLastError()