test: check and handle error for testing
SonarQube Scan / SonarQube Trigger (push) Successful in 2m30s

This commit is contained in:
2026-01-26 18:55:59 +07:00
parent 48b680110a
commit 91bab8e3d6
14 changed files with 466 additions and 473 deletions
+3 -1
View File
@@ -744,7 +744,9 @@ func TestNew(t *testing.T) {
if cli == nil {
t.Fatal("New() returned nil client")
}
defer cli.Close()
defer func(cli Client) {
_ = cli.Close()
}(cli)
}
type MockConfig struct {