From 17d1c392e45ecf68af4755ed66989f01d4e9edbe Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 22 Jan 2015 13:42:22 -0800 Subject: [PATCH] CHANGELOG update, gofmt --- CHANGELOG.md | 1 + api/agent_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 653a91fa1c..0e2b6b2ba9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/api/agent_test.go b/api/agent_test.go index 3b71414543..60cc4ae1e6 100644 --- a/api/agent_test.go +++ b/api/agent_test.go @@ -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) }