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{
|
node := ®istry.Node{
|
||||||
Id: opts.Name + "-" + opts.Id,
|
Id: opts.Name + "-" + opts.Id,
|
||||||
Address: addr,
|
Address: fmt.Sprintf("%s:%d", addr, port),
|
||||||
Port: port,
|
|
||||||
Metadata: opts.Metadata,
|
Metadata: opts.Metadata,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ func TestHTTPServer(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make request
|
// 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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user