fix/apollo
baozhecheng 2 years ago
parent 1e0a3c04be
commit 0ac2cea598
  1. 6
      .github/workflows/go.yml
  2. 6
      contrib/registry/nacos/registry_test.go

@ -29,12 +29,12 @@ jobs:
ports: ports:
- 8500:8500 - 8500:8500
nacos: nacos:
image: nacos/nacos-server:v2.1.1 image: nacos/nacos-server:v1.4.4
env: env:
MODE: standalone MODE: standalone
ports: ports:
- "8848:8848" - 8848:8848
- "9848:9848" - 9848:9848
polaris: polaris:
image: polarismesh/polaris-server-standalone:v1.9.0 image: polarismesh/polaris-server-standalone:v1.9.0
ports: ports:

@ -2,7 +2,6 @@ package nacos
import ( import (
"context" "context"
"net"
"reflect" "reflect"
"testing" "testing"
"time" "time"
@ -15,11 +14,6 @@ import (
) )
func TestRegistry_Register(t *testing.T) { 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{ sc := []constant.ServerConfig{
*constant.NewServerConfig("127.0.0.1", 8848), *constant.NewServerConfig("127.0.0.1", 8848),
} }

Loading…
Cancel
Save