From 2fbe713bb6c3ac3c2ff882f79261b451e94fbd71 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 2 Feb 2024 06:16:36 +0700 Subject: [PATCH] protocol: don't capitalize Perspective.String (#4296) --- internal/protocol/perspective.go | 4 ++-- internal/protocol/perspective_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/protocol/perspective.go b/internal/protocol/perspective.go index 43358fecb..5a29d3ce2 100644 --- a/internal/protocol/perspective.go +++ b/internal/protocol/perspective.go @@ -17,9 +17,9 @@ func (p Perspective) Opposite() Perspective { func (p Perspective) String() string { switch p { case PerspectiveServer: - return "Server" + return "server" case PerspectiveClient: - return "Client" + return "client" default: return "invalid perspective" } diff --git a/internal/protocol/perspective_test.go b/internal/protocol/perspective_test.go index 11e29cc96..83a904e03 100644 --- a/internal/protocol/perspective_test.go +++ b/internal/protocol/perspective_test.go @@ -7,8 +7,8 @@ import ( var _ = Describe("Perspective", func() { It("has a string representation", func() { - Expect(PerspectiveClient.String()).To(Equal("Client")) - Expect(PerspectiveServer.String()).To(Equal("Server")) + Expect(PerspectiveClient.String()).To(Equal("client")) + Expect(PerspectiveServer.String()).To(Equal("server")) Expect(Perspective(0).String()).To(Equal("invalid perspective")) })