fix: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
		
							parent
							
								
									ed04106af4
								
							
						
					
					
						commit
						fdcc40683e
					
				|  | @ -152,7 +152,7 @@ func TestGetGitAuth(t *testing.T) { | |||
| 		{ | ||||
| 			testName: "withToken", | ||||
| 			setEnv: func() (expectedValue transport.AuthMethod) { | ||||
| 				token := "super-secret-token-1234" | ||||
| 				token := "some-other-token" | ||||
| 				_ = os.Setenv(gitAuthTokenEnvKey, token) | ||||
| 				expectedValue = &http.BasicAuth{Username: token} | ||||
| 				return | ||||
|  | @ -162,8 +162,8 @@ func TestGetGitAuth(t *testing.T) { | |||
| 			testName: "withTokenUsernamePassword", | ||||
| 			setEnv: func() (expectedValue transport.AuthMethod) { | ||||
| 				username := "foo" | ||||
| 				token := "super-secret-password-1234" | ||||
| 				pass := "super-secret-token-1234" | ||||
| 				token := "some-token-45678" | ||||
| 				pass := "some-password-12345" | ||||
| 				_ = os.Setenv(gitAuthUsernameEnvKey, username) | ||||
| 				_ = os.Setenv(gitAuthPasswordEnvKey, pass) | ||||
| 				_ = os.Setenv(gitAuthTokenEnvKey, token) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue