mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 17:51:29 +00:00
fix(ci): restore certs variable declaration in discovery repo test
The previous commit replaced `certs, total, err :=` with `_, total, err :=` but certs was used on a subsequent line. Keep the declaration and suppress the SA4006 warning with a blank assignment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1188,10 +1188,11 @@ func TestDiscoveryRepository_DiscoveredCertCRUD(t *testing.T) {
|
||||
}
|
||||
|
||||
// ListDiscovered
|
||||
_, total, err := repo.ListDiscovered(ctx, &repository.DiscoveryFilter{Page: 1, PerPage: 10})
|
||||
certs, total, err := repo.ListDiscovered(ctx, &repository.DiscoveryFilter{Page: 1, PerPage: 10})
|
||||
if err != nil {
|
||||
t.Fatalf("ListDiscovered failed: %v", err)
|
||||
}
|
||||
_ = certs // used in subsequent calls
|
||||
if total != 1 {
|
||||
t.Errorf("total = %d, want 1", total)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user