From 605cafa635431fcb17a25f6293ecb1c3c99ebce5 Mon Sep 17 00:00:00 2001 From: Hector <hector@hjs.dev> Date: Wed, 21 Jun 2023 11:27:01 +0100 Subject: [PATCH] hash password in test --- auth/basic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/basic_test.go b/auth/basic_test.go index ba23f5f..e4ca1fd 100644 --- a/auth/basic_test.go +++ b/auth/basic_test.go @@ -9,7 +9,7 @@ import ( func Test_GIVEN_BasicAuthSet_WHEN_CallingIsAllowedWithCorrectCreds_THEN_TrueReturned(t *testing.T) { // assemble username := "u1" - password := "p1" + password := HashString("abc") request := httptest.NewRequest(http.MethodGet, "http://example.com", nil) request.SetBasicAuth(username, password) provider := NewBasicAuthProvider(username, password)