From 457e69958618f487b8627eeab295e2d27262e133 Mon Sep 17 00:00:00 2001 From: Nikita COEUR Date: Sat, 11 Jan 2025 17:24:12 +0100 Subject: [PATCH] tests(vacuum): fix lints --- pkg/controller/vacuum/vacuum_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/controller/vacuum/vacuum_test.go b/pkg/controller/vacuum/vacuum_test.go index 51fdb2b5e..b8306698f 100644 --- a/pkg/controller/vacuum/vacuum_test.go +++ b/pkg/controller/vacuum/vacuum_test.go @@ -16,7 +16,7 @@ import ( "github.com/spf13/afero" ) -func TestVacuum(t *testing.T) { //nolint:funlen,maintidx,cyclop +func TestVacuum(t *testing.T) { //nolint:funlen,maintidx,cyclop,gocognit,gocyclo t.Parallel() fs := afero.NewOsFs() @@ -109,7 +109,6 @@ func TestVacuum(t *testing.T) { //nolint:funlen,maintidx,cyclop // Test err = controller.ListPackages(ctx, logE, false, "test") - // Assert if err != nil { t.Fatal(err) // Should succeed with empty database @@ -324,7 +323,6 @@ func TestVacuum(t *testing.T) { //nolint:funlen,maintidx,cyclop // Test err = controller.ListPackages(ctx, logE, true, "test") - // Assert if err != nil { t.Fatal(err) // Error if no package found