From bcfe70df67f4df0191ea8ac9b01fbbb33eb2b82e Mon Sep 17 00:00:00 2001 From: James Gordon Date: Mon, 16 Oct 2023 09:58:50 +0100 Subject: [PATCH] chore: Clean up go warning Error strings should not be capitalized Test variable should not be public as sarama only has one package --- broker_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/broker_test.go b/broker_test.go index 6e6b8480c1..b988044951 100644 --- a/broker_test.go +++ b/broker_test.go @@ -196,7 +196,7 @@ func TestBrokerFailedRequest(t *testing.T) { } } -var ErrTokenFailure = errors.New("Failure generating token") +var errTokenFailure = errors.New("failure generating token") type TokenProvider struct { accessToken *AccessToken @@ -268,7 +268,7 @@ func TestSASLOAuthBearer(t *testing.T) { mockSASLAuthResponse: NewMockSaslAuthenticateResponse(t), expectClientErr: true, expectedBrokerError: ErrNoError, - tokProvider: newTokenProvider(&AccessToken{Token: "access-token-123"}, ErrTokenFailure), + tokProvider: newTokenProvider(&AccessToken{Token: "access-token-123"}, errTokenFailure), }, { name: "SASL/OAUTHBEARER invalid extension",