test: ignore one golint rule

fix
This commit is contained in:
andyzhangx 2023-12-03 05:11:12 +00:00
parent d0f1e29764
commit 04b7f66012
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import (
admissionapi "k8s.io/pod-security-admission/api"
)
var _ = ginkgo.Describe("Dynamic Provisioning", func(ctx ginkgo.SpecContext) {
var _ = ginkgo.Describe("Dynamic Provisioning", func() {
f := framework.NewDefaultFramework("nfs")
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged

View File

@ -527,7 +527,7 @@ func pollForStringInPodsExec(namespace string, pods []string, command []string,
func pollForStringWorker(namespace string, pod string, command []string, expectedString string, ch chan<- error) {
args := append([]string{"exec", pod, "--"}, command...)
err := wait.PollImmediate(poll, pollForStringTimeout, func() (bool, error) {
err := wait.PollImmediate(poll, pollForStringTimeout, func() (bool, error) { // nolint
stdout, err := e2ekubectl.RunKubectl(namespace, args...)
if err != nil {
framework.Logf("Error waiting for output %q in pod %q: %v.", expectedString, pod, err)