Fix breaks related to removing node.port

This commit is contained in:
Asim Aslam 2019-07-08 08:43:21 +01:00 committed by Vasiliy Tolstov
parent 3d62ef5819
commit 03948ae35b
2 changed files with 2 additions and 3 deletions

View File

@ -36,8 +36,7 @@ func serviceDef(opts server.Options) *registry.Service {
node := &registry.Node{
Id: opts.Name + "-" + opts.Id,
Address: addr,
Port: port,
Address: fmt.Sprintf("%s:%d", addr, port),
Metadata: opts.Metadata,
}

View File

@ -50,7 +50,7 @@ func TestHTTPServer(t *testing.T) {
}
// make request
rsp, err := http.Get(fmt.Sprintf("http://%s:%d", service[0].Nodes[0].Address, service[0].Nodes[0].Port))
rsp, err := http.Get(fmt.Sprintf("http://%s", service[0].Nodes[0].Address))
if err != nil {
t.Fatal(err)
}