test: ignore one golint rule
fix
This commit is contained in:
parent
d0f1e29764
commit
04b7f66012
@ -28,7 +28,7 @@ import (
|
|||||||
admissionapi "k8s.io/pod-security-admission/api"
|
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 := framework.NewDefaultFramework("nfs")
|
||||||
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
|
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
|
||||||
|
|
||||||
|
|||||||
@ -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) {
|
func pollForStringWorker(namespace string, pod string, command []string, expectedString string, ch chan<- error) {
|
||||||
args := append([]string{"exec", pod, "--"}, command...)
|
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...)
|
stdout, err := e2ekubectl.RunKubectl(namespace, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
framework.Logf("Error waiting for output %q in pod %q: %v.", expectedString, pod, err)
|
framework.Logf("Error waiting for output %q in pod %q: %v.", expectedString, pod, err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user