From 325637b6be6a5e0858f1c5642ce214d3aac6d504 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Mon, 26 Jun 2017 14:22:09 +0200 Subject: [PATCH] rpc: fix typos --- agent/consul/catalog_endpoint_test.go | 2 +- agent/consul/server_test.go | 2 +- agent/consul/session_ttl.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/consul/catalog_endpoint_test.go b/agent/consul/catalog_endpoint_test.go index 048db553a..0c0b5dac9 100644 --- a/agent/consul/catalog_endpoint_test.go +++ b/agent/consul/catalog_endpoint_test.go @@ -696,7 +696,7 @@ func TestCatalog_ListNodes_NodeMetaFilter(t *testing.T) { }) } -func TestCatalog_ListNodes_StaleRaad(t *testing.T) { +func TestCatalog_ListNodes_StaleRead(t *testing.T) { dir1, s1 := testServer(t) defer os.RemoveAll(dir1) defer s1.Shutdown() diff --git a/agent/consul/server_test.go b/agent/consul/server_test.go index c2a733071..9dce9dc6d 100644 --- a/agent/consul/server_test.go +++ b/agent/consul/server_test.go @@ -259,7 +259,7 @@ func TestServer_JoinSeparateLanAndWanAddresses(t *testing.T) { r.Fatalf("got %d s2 LAN members want %d", got, want) } if got, want := len(s3.LANMembers()), 2; got != want { - r.Fatalf("got %d s3 WAN members want %d", got, want) + r.Fatalf("got %d s3 LAN members want %d", got, want) } }) diff --git a/agent/consul/session_ttl.go b/agent/consul/session_ttl.go index dfebb3c0c..2f4819ac3 100644 --- a/agent/consul/session_ttl.go +++ b/agent/consul/session_ttl.go @@ -94,7 +94,7 @@ func (s *Server) resetSessionTimerLocked(id string, ttl time.Duration) { return } - // Create a new timer to track expiration of thi ssession + // Create a new timer to track expiration of this ssession timer := time.AfterFunc(ttl, func() { s.invalidateSession(id) })