Skip to content

Commit

Permalink
Enable and fix thelper linter
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Dec 18, 2024
1 parent 92bbcb8 commit c8dfcaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ linters:
- tenv
- testableexamples
- testifylint
- thelper
- tparallel
- typecheck
- unconvert
Expand All @@ -109,7 +110,6 @@ linters:
# - nlreturn
# - nonamedreturns
# - testpackage
# - thelper
# - varnamelen
# - wrapcheck
# - wsl
Expand Down
2 changes: 2 additions & 0 deletions cmd/critest/cri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func isFlagSet(name string) bool {

// runTestSuite runs cri validation tests and benchmark tests.
func runTestSuite(t *testing.T) {
t.Helper()
gomega.RegisterFailHandler(ginkgo.Fail)
ginkgo.RunSpecs(t, "CRI validation")
}
Expand All @@ -105,6 +106,7 @@ func generateTempTestName() (string, error) {
}

func runParallelTestSuite(t *testing.T) {
t.Helper()
criPath, err := os.Executable()
if err != nil {
t.Fatalf("Failed to lookup path of critest: %v", err)
Expand Down

0 comments on commit c8dfcaa

Please sign in to comment.