Skip to content

Commit

Permalink
try harderer to make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils authored and k8s-ci-robot committed Feb 5, 2025
1 parent bbecde3 commit 082e9c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/pkg/cli/remover/remover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func TestRun(t *testing.T) {
mock.ReadFileReturns(apparmorProfile, nil)
mock.AppArmorEnabledReturns(true)
mock.AppArmorRemoveProfileReturns(errors.New("profile syntax error"))

return defaultOptions()
},
assert: func(mock *removerfakes.FakeImpl, err error) {
Expand All @@ -96,6 +97,7 @@ func TestRun(t *testing.T) {
name: "unsupported profile type",
prepare: func(mock *removerfakes.FakeImpl) *installer.Options {
mock.ReadFileReturns(seccompProfile, nil)

return defaultOptions()
},
assert: func(mock *removerfakes.FakeImpl, err error) {
Expand All @@ -106,6 +108,7 @@ func TestRun(t *testing.T) {
name: "invalid file",
prepare: func(mock *removerfakes.FakeImpl) *installer.Options {
mock.ReadFileReturns([]byte{}, nil)

return defaultOptions()
},
assert: func(mock *removerfakes.FakeImpl, err error) {
Expand Down

0 comments on commit 082e9c2

Please sign in to comment.