Skip to content

Commit

Permalink
tests(vacuum): fix lint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCOEUR committed Jan 10, 2025
1 parent 2cb4eb0 commit 84636e4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pkg/controller/vacuum/vacuum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,17 @@ func TestMockVacuumController_StorePackage(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
err := mockCtrl.StorePackage(logE, tt.pkg, tt.pkgPath)
if tt.wantErr {
assert.Error(t, err)
require.Error(t, err)
} else {
assert.NoError(t, err)
require.NoError(t, err)
}
err = mockCtrl.Vacuum(logE)
assert.NoError(t, err)
require.NoError(t, err)
err = mockCtrl.Close(logE)
assert.NoError(t, err)

require.NoError(t, err)
})
}
}
Expand All @@ -436,12 +436,11 @@ func TestNilVacuumController(t *testing.T) {

test := generateTestPackages(1, "/tmp")
err := mockCtrl.StorePackage(logE, test[0].configPkg, test[0].pkgPath)
assert.NoError(t, err)
require.NoError(t, err)
err = mockCtrl.Vacuum(logE)
assert.NoError(t, err)
require.NoError(t, err)
err = mockCtrl.Close(logE)
assert.NoError(t, err)

require.NoError(t, err)
}

type ConfigPackageWithPath struct {
Expand Down

0 comments on commit 84636e4

Please sign in to comment.