|
|
|
@ -2,6 +2,7 @@ package nacos |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
|
"context" |
|
|
|
|
"net" |
|
|
|
|
"reflect" |
|
|
|
|
"testing" |
|
|
|
|
"time" |
|
|
|
@ -14,8 +15,13 @@ import ( |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
func TestRegistry_Register(t *testing.T) { |
|
|
|
|
dial, err := net.Dial("tcp", "127.0.0.1:8848") |
|
|
|
|
if err != nil { |
|
|
|
|
t.Fatal(err) |
|
|
|
|
} |
|
|
|
|
t.Log(dial) |
|
|
|
|
sc := []constant.ServerConfig{ |
|
|
|
|
*constant.NewServerConfig("nacos", 8848), |
|
|
|
|
*constant.NewServerConfig("127.0.0.1", 8848), |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
cc := constant.ClientConfig{ |
|
|
|
|