From 1e0a3c04bef8fd970c009490dd37f0701d87eed3 Mon Sep 17 00:00:00 2001 From: baozhecheng Date: Wed, 10 Aug 2022 20:15:46 +0800 Subject: [PATCH] fix --- contrib/registry/nacos/registry_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/registry/nacos/registry_test.go b/contrib/registry/nacos/registry_test.go index 7d2cde2c9..11e1a4de0 100644 --- a/contrib/registry/nacos/registry_test.go +++ b/contrib/registry/nacos/registry_test.go @@ -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{