Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edcdavid committed Dec 5, 2023
1 parent c295c29 commit b2481f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion container/check_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewCheck(image string, opts ...Option) *containerCheck {
func (c *containerCheck) Run(ctx context.Context) (certification.Results, error) {
pol, checks, err := c.List(ctx)
if err != nil {
return certification.Results{}, fmt.Errorf("%w: %s", preflighterr.ErrCannotListChecks, err)
return certification.Results{}, err
}

cfg := runtime.Config{
Expand Down
1 change: 0 additions & 1 deletion errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ var (
ErrImageEmpty = errors.New("image is empty")
ErrCannotResolvePolicyException = errors.New("cannot resolve policy exception")
ErrCannotInitializeChecks = errors.New("unable to initialize checks")
ErrCannotListChecks = errors.New("unable to list checks")
)
2 changes: 1 addition & 1 deletion operator/check_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewCheck(image, indeximage string, kubeconfig []byte, opts ...Option) *oper
func (c operatorCheck) Run(ctx context.Context) (certification.Results, error) {
_, checks, err := c.List(ctx)
if err != nil {
return certification.Results{}, fmt.Errorf("%w: %s", preflighterr.ErrCannotListChecks, err)
return certification.Results{}, err
}

cfg := runtime.Config{
Expand Down

0 comments on commit b2481f0

Please sign in to comment.