chore: apply golangci "forbidigo" to all packages (#39151)

This commit is contained in:
wxiaoguang
2026-08-28 00:34:44 +08:00
committed by GitHub
parent 66c672d0b7
commit b7cfa4e67e
17 changed files with 61 additions and 54 deletions
+2 -2
View File
@@ -72,10 +72,10 @@ func TestSSHShellWelcome(t *testing.T) {
require.NoError(t, err)
var stderr bytes.Buffer
session.Stderr = &stderr // "gitea serv" writes the welcome with println, which goes to stderr
session.Stderr = &stderr
require.NoError(t, session.Shell())
require.NoError(t, session.Wait()) // fails unless the server reports exit status 0
assert.Contains(t, stderr.String(), "You've successfully authenticated with the key named welcome-key")
assert.Contains(t, stderr.String(), "You've successfully authenticated with the SSH key named welcome-key.")
})
})
}