common/fdlimit: fix linter warning (#25192)

This commit is contained in:
Guillaume Ballet 2022-06-29 10:54:57 +02:00 committed by Daniel Liu
parent 020fac603c
commit 1ce065f192

View file

@ -17,7 +17,6 @@
package fdlimit
import (
"fmt"
"testing"
)
@ -30,7 +29,7 @@ func TestFileDescriptorLimits(t *testing.T) {
t.Fatal(err)
}
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 {