fix lint and test failures

This commit is contained in:
wizardchen
2026-07-01 16:55:30 +08:00
committed by lyingbug
parent 4c962a9403
commit 8d40959f88
48 changed files with 301 additions and 104 deletions
@@ -116,6 +116,10 @@ func TestClient_Ping_403WrapsInvalidCredentials(t *testing.T) {
}
func TestClient_TokenNeverLoggedInFull(t *testing.T) {
t.Setenv("LOG_FORMAT", "")
logger.ConfigureFromEnv()
defer logger.ConfigureFromEnv()
// Redirect the project's internal logger to an in-memory buffer so we can
// assert the raw token never appears in log output. Using stdlib `log`
// would be vacuous — the real logger is a private logrus instance.