fix test addr

pull/412/head
Tony 5 years ago
parent 0cad7e3d5a
commit aae2db977b
  1. 2
      pkg/conf/paladin/apollo/apollo_test.go
  2. 2
      pkg/conf/paladin/apollo/internal/mockserver/mockserver.go

@ -43,7 +43,7 @@ func TestApollo(t *testing.T) {
os.Setenv("APOLLO_APP_ID", "SampleApp")
os.Setenv("APOLLO_CLUSTER", "default")
os.Setenv("APOLLO_CACHE_DIR", "/tmp")
os.Setenv("APOLLO_META_ADDR", "localhost:8080")
os.Setenv("APOLLO_META_ADDR", "localhost:8010")
os.Setenv("APOLLO_NAMESPACES", fmt.Sprintf("%s,%s", testAppYAML, testClientJSON))
mockserver.Set(testAppYAML, "content", testAppYAMLContent1)
mockserver.Set(testClientJSON, "content", testClientJSONContent)

@ -137,7 +137,7 @@ func initServer() {
mux.Handle("/notifications/", http.HandlerFunc(server.NotificationHandler))
mux.Handle("/configs/", http.HandlerFunc(server.ConfigHandler))
server.server.Handler = mux
server.server.Addr = ":8080"
server.server.Addr = ":8010"
}
// Close mock server

Loading…
Cancel
Save