Fix linting errors
This commit is contained in:
parent
8d53c9e55e
commit
ecfb226d5d
2 changed files with 3 additions and 2 deletions
|
|
@ -462,7 +462,7 @@ func TestSwitchUserErrorsIfNoTokenMadeActive(t *testing.T) {
|
|||
_, err = authCfg.Login("github.com", "test-user-2", "test-token-2", "ssh", true)
|
||||
require.NoError(t, err)
|
||||
|
||||
keyring.Delete(keyringServiceName("github.com"), "test-user-1")
|
||||
require.NoError(t, keyring.Delete(keyringServiceName("github.com"), "test-user-1"))
|
||||
|
||||
// When we switch to the user
|
||||
err = authCfg.SwitchUser("github.com", "test-user-1")
|
||||
|
|
|
|||
|
|
@ -417,7 +417,8 @@ func Test_refreshRun(t *testing.T) {
|
|||
|
||||
cfg, _ := config.NewIsolatedTestConfig(t)
|
||||
for _, hostname := range tt.cfgHosts {
|
||||
cfg.Authentication().Login(hostname, "test-user", "abc123", "https", false)
|
||||
_, err := cfg.Authentication().Login(hostname, "test-user", "abc123", "https", false)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
tt.opts.Config = func() (config.Config, error) {
|
||||
return cfg, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue