mirror of https://github.com/status-im/consul.git
CHANGELOG update, gofmt
This commit is contained in:
parent
e33c31a8d6
commit
17d1c392e4
|
@ -40,6 +40,7 @@ BUG FIXES:
|
|||
* Fixed memory leaks in API client when an error response is returned [GH-608]
|
||||
* Fixed issues with graceful leave in single-node bootstrap cluster [GH-621]
|
||||
* Fixed issue preventing node reaping [GH-371]
|
||||
* Fixed gossip stability at very large scale
|
||||
|
||||
IMPROVEMENTS:
|
||||
|
||||
|
|
|
@ -45,9 +45,9 @@ func TestAgent_Services(t *testing.T) {
|
|||
agent := c.Agent()
|
||||
|
||||
reg := &AgentServiceRegistration{
|
||||
Name: "foo",
|
||||
Tags: []string{"bar", "baz"},
|
||||
Port: 8000,
|
||||
Name: "foo",
|
||||
Tags: []string{"bar", "baz"},
|
||||
Port: 8000,
|
||||
Check: &AgentServiceCheck{
|
||||
TTL: "15s",
|
||||
},
|
||||
|
@ -89,8 +89,8 @@ func TestAgent_ServiceAddress(t *testing.T) {
|
|||
Address: "192.168.0.42",
|
||||
}
|
||||
reg2 := &AgentServiceRegistration{
|
||||
Name: "foo2",
|
||||
Port: 8000,
|
||||
Name: "foo2",
|
||||
Port: 8000,
|
||||
}
|
||||
if err := agent.ServiceRegister(reg1); err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
|
@ -103,7 +103,7 @@ func TestAgent_ServiceAddress(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
|
||||
if _, ok := services["foo1"]; !ok {
|
||||
t.Fatalf("missing service: %v", services)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue