Skip to content

Commit 788cd50

Browse files
committed
linters/testifylint: replace assert with t.Errorf
Signed-off-by: Mahe Tardy <[email protected]>
1 parent ee383dc commit 788cd50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/btf/btf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func buildPathFromString(t *testing.T, rootType btf.Type, pathStr string) []stri
413413
pathBase := strings.Split(pathStr, ".")
414414
path := addPaddingOnNestedPtr(rootType, pathBase)
415415
if len(path) > api.MaxBTFArgDepth {
416-
assert.Fail(t, "Unable to resolve %q. The maximum depth allowed is %d", pathStr, api.MaxBTFArgDepth)
416+
t.Errorf("Unable to resolve %q. The maximum depth allowed is %d", pathStr, api.MaxBTFArgDepth)
417417
}
418418
return path
419419
}

0 commit comments

Comments
 (0)