Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samirtahir91 committed Apr 1, 2024
1 parent de823b8 commit 70969e5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions internal/controller/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ var _ = BeforeSuite(func() {
BinaryAssetsDirectory: filepath.Join("..", "..", "bin", "k8s",
fmt.Sprintf("1.28.3-%s-%s", runtime.GOOS, runtime.GOARCH)),
}
os.Setenv("CHECK_INTERVAL", "5s")
os.Setenv("EXPIRY_THRESHOLD", "15m")

if osEnvErr := os.Setenv("CHECK_INTERVAL", "5s"); osEnvErr != nil {
return fmt.Errorf("failed to set os env var for CHECK_INTERVAL: %v", err)

Check failure on line 79 in internal/controller/suite_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

too many return values

Check failure on line 79 in internal/controller/suite_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: err
}
if osEnvErr := os.Setenv("EXPIRY_THRESHOLD", "15m"); osEnvErr != nil {
return fmt.Errorf("failed to set os env var for EXPIRY_THRESHOLD: %v", err)

Check failure on line 82 in internal/controller/suite_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

too many return values

Check failure on line 82 in internal/controller/suite_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: err (typecheck)
}

var err error
// cfg is defined in this file globally.
Expand Down

0 comments on commit 70969e5

Please sign in to comment.