mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 19:01:34 +00:00
fix(ci): resolve 9 remaining staticcheck issues
- SA5011: use t.Fatal instead of t.Error before nil pointer access in verification handler tests (stops test execution on nil) - SA4006: replace unused lvalues with _ in repo_test.go and team_test.go - ST1020: fix comment format on ListViolations to match method name Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -66,7 +66,7 @@ func TestVerifyDeployment_Success(t *testing.T) {
|
||||
// Verify result was recorded
|
||||
result := mockSvc.results["j-test1"]
|
||||
if result == nil {
|
||||
t.Error("expected verification result to be recorded")
|
||||
t.Fatal("expected verification result to be recorded")
|
||||
}
|
||||
if !result.Verified {
|
||||
t.Error("expected Verified to be true")
|
||||
@@ -98,7 +98,7 @@ func TestVerifyDeployment_FingerPrintMismatch(t *testing.T) {
|
||||
|
||||
result := mockSvc.results["j-test2"]
|
||||
if result == nil {
|
||||
t.Error("expected verification result to be recorded")
|
||||
t.Fatal("expected verification result to be recorded")
|
||||
}
|
||||
if result.Verified {
|
||||
t.Error("expected Verified to be false")
|
||||
|
||||
Reference in New Issue
Block a user