Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable and fix thelper linter #1727

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading