Fix breaks related to removing node.port
This commit is contained in:
parent
3d62ef5819
commit
03948ae35b
@ -36,8 +36,7 @@ func serviceDef(opts server.Options) *registry.Service {
|
||||
|
||||
node := ®istry.Node{
|
||||
Id: opts.Name + "-" + opts.Id,
|
||||
Address: addr,
|
||||
Port: port,
|
||||
Address: fmt.Sprintf("%s:%d", addr, port),
|
||||
Metadata: opts.Metadata,
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user