From 0ac2cea5980ad9dda5d38ef4d3e81ef1231e278d Mon Sep 17 00:00:00 2001 From: baozhecheng Date: Wed, 10 Aug 2022 20:21:39 +0800 Subject: [PATCH] fix --- .github/workflows/go.yml | 6 +++--- contrib/registry/nacos/registry_test.go | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1227a0def..28f3560c3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,12 +29,12 @@ jobs: ports: - 8500:8500 nacos: - image: nacos/nacos-server:v2.1.1 + image: nacos/nacos-server:v1.4.4 env: MODE: standalone ports: - - "8848:8848" - - "9848:9848" + - 8848:8848 + - 9848:9848 polaris: image: polarismesh/polaris-server-standalone:v1.9.0 ports: diff --git a/contrib/registry/nacos/registry_test.go b/contrib/registry/nacos/registry_test.go index 11e1a4de0..1910a68d8 100644 --- a/contrib/registry/nacos/registry_test.go +++ b/contrib/registry/nacos/registry_test.go @@ -2,7 +2,6 @@ package nacos import ( "context" - "net" "reflect" "testing" "time" @@ -15,11 +14,6 @@ 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("127.0.0.1", 8848), }