Skip to content

Commit

Permalink
tests(vacuum): fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCOEUR committed Jan 11, 2025
1 parent 99f6456 commit 457e699
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/controller/vacuum/vacuum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 457e699

Please sign in to comment.