Remove Port from registry
This commit is contained in:
@@ -13,8 +13,7 @@ func TestMDNS(t *testing.T) {
|
||||
Nodes: []*Node{
|
||||
&Node{
|
||||
Id: "test1-1",
|
||||
Address: "10.0.0.1",
|
||||
Port: 10001,
|
||||
Address: "10.0.0.1:10001",
|
||||
Metadata: map[string]string{
|
||||
"foo": "bar",
|
||||
},
|
||||
@@ -27,8 +26,7 @@ func TestMDNS(t *testing.T) {
|
||||
Nodes: []*Node{
|
||||
&Node{
|
||||
Id: "test2-1",
|
||||
Address: "10.0.0.2",
|
||||
Port: 10002,
|
||||
Address: "10.0.0.2:10002",
|
||||
Metadata: map[string]string{
|
||||
"foo2": "bar2",
|
||||
},
|
||||
@@ -41,8 +39,7 @@ func TestMDNS(t *testing.T) {
|
||||
Nodes: []*Node{
|
||||
&Node{
|
||||
Id: "test3-1",
|
||||
Address: "10.0.0.3",
|
||||
Port: 10003,
|
||||
Address: "10.0.0.3:10003",
|
||||
Metadata: map[string]string{
|
||||
"foo3": "bar3",
|
||||
},
|
||||
@@ -92,10 +89,6 @@ func TestMDNS(t *testing.T) {
|
||||
if node.Address != service.Nodes[0].Address {
|
||||
t.Fatalf("Expected node address %s got %s", service.Nodes[0].Address, node.Address)
|
||||
}
|
||||
|
||||
if node.Port != service.Nodes[0].Port {
|
||||
t.Fatalf("Expected node port %d got %d", service.Nodes[0].Port, node.Port)
|
||||
}
|
||||
}
|
||||
|
||||
services, err := r.ListServices()
|
||||
|
||||
Reference in New Issue
Block a user