From 78c2ab66464a1f6e713975d727a3df814d799070 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 18 Mar 2020 15:02:24 -0700 Subject: [PATCH] Fix gosimple checks Signed-off-by: Derek McGowan --- registry/client/auth/session_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/registry/client/auth/session_test.go b/registry/client/auth/session_test.go index 4f54c75cc..c857ec815 100644 --- a/registry/client/auth/session_test.go +++ b/registry/client/auth/session_test.go @@ -466,7 +466,7 @@ func TestEndpointAuthorizeTokenBasic(t *testing.T) { }, }) - authenicate1 := fmt.Sprintf("Basic realm=localhost") + authenicate1 := "Basic realm=localhost" basicCheck := func(a string) bool { return a == fmt.Sprintf("Basic %s", basicAuth(username, password)) } @@ -546,7 +546,7 @@ func TestEndpointAuthorizeTokenBasicWithExpiresIn(t *testing.T) { }, }) - authenicate1 := fmt.Sprintf("Basic realm=localhost") + authenicate1 := "Basic realm=localhost" tokenExchanges := 0 basicCheck := func(a string) bool { tokenExchanges = tokenExchanges + 1 @@ -706,7 +706,7 @@ func TestEndpointAuthorizeTokenBasicWithExpiresInAndIssuedAt(t *testing.T) { }, }) - authenicate1 := fmt.Sprintf("Basic realm=localhost") + authenicate1 := "Basic realm=localhost" tokenExchanges := 0 basicCheck := func(a string) bool { tokenExchanges = tokenExchanges + 1 @@ -835,7 +835,7 @@ func TestEndpointAuthorizeBasic(t *testing.T) { username := "user1" password := "funSecretPa$$word" - authenicate := fmt.Sprintf("Basic realm=localhost") + authenicate := "Basic realm=localhost" validCheck := func(a string) bool { return a == fmt.Sprintf("Basic %s", basicAuth(username, password)) }