ignore polaris test & add eureka consul test (#1998)

status-code-override
Kagaya 3 years ago committed by chenzhihui
parent ced122a688
commit c329cffa3f
  1. 5
      .github/workflows/go.yml
  2. 8
      contrib/registry/consul/registry_test.go
  3. 3
      hack/.test_ignored_files

@ -35,11 +35,6 @@ jobs:
ports:
- "8848:8848"
- "9848:9848"
polaris:
image: huyuanxin/polaris-server-with-config:latest
ports:
- 8090:8090
- 8091:8091
steps:
- uses: actions/checkout@v2
- name: Set up Go

@ -57,10 +57,6 @@ func TestRegister(t *testing.T) {
}
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
defer cancel()
err = r.Deregister(ctx, svc)
if err != nil {
t.Errorf("Deregister failed: %v", err)
}
err = r.Register(ctx, svc)
if err != nil {
t.Errorf("Register failed: %v", err)
@ -86,6 +82,10 @@ func TestRegister(t *testing.T) {
if !reflect.DeepEqual(version, services[0].Version) {
t.Errorf("no expect float_key value: %v, but got: %v", services[0].Version, version)
}
err = r.Deregister(ctx, svc)
if err != nil {
t.Errorf("Deregister failed: %v", err)
}
}
func getIntranetIP() string {

@ -5,6 +5,5 @@
./contrib/config/kubernetes
./contrib/registry/kubernetes
./contrib/registry/zookeeper
./contrib/registry/etcd
./contrib/registry/consul
./contrib/registry/eureka
./contrib/registry/polaris

Loading…
Cancel
Save