fix: linter warning (#25192)

This commit is contained in:
Guillaume Ballet 2022-06-29 10:54:57 +02:00 committed by GitHub
parent 9a5c1000c7
commit d1890aa402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,6 @@
package fdlimit package fdlimit
import ( import (
"fmt"
"testing" "testing"
) )
@ -30,7 +29,7 @@ func TestFileDescriptorLimits(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if hardlimit < target { if hardlimit < target {
t.Skip(fmt.Sprintf("system limit is less than desired test target: %d < %d", hardlimit, target)) t.Skipf("system limit is less than desired test target: %d < %d", hardlimit, target)
} }
if limit, err := Current(); err != nil || limit <= 0 { if limit, err := Current(); err != nil || limit <= 0 {