From 1c5506ae645f9b58160c9929b0ac94051a1324cb Mon Sep 17 00:00:00 2001 From: kanozec Date: Sun, 10 Nov 2019 20:24:06 +0800 Subject: [PATCH] fix golint: don't use underscores in Go names --- test/e2e_node/restart_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e_node/restart_test.go b/test/e2e_node/restart_test.go index f161b7b033a..c8ff0f9d9b7 100644 --- a/test/e2e_node/restart_test.go +++ b/test/e2e_node/restart_test.go @@ -35,7 +35,7 @@ import ( // waitForPods waits for timeout duration, for pod_count. // If the timeout is hit, it returns the list of currently running pods. -func waitForPods(f *framework.Framework, pod_count int, timeout time.Duration) (runningPods []*v1.Pod) { +func waitForPods(f *framework.Framework, podCount int, timeout time.Duration) (runningPods []*v1.Pod) { for start := time.Now(); time.Since(start) < timeout; time.Sleep(10 * time.Second) { podList, err := f.PodClient().List(metav1.ListOptions{}) if err != nil { @@ -51,7 +51,7 @@ func waitForPods(f *framework.Framework, pod_count int, timeout time.Duration) ( runningPods = append(runningPods, &pod) } framework.Logf("Running pod count %d", len(runningPods)) - if len(runningPods) >= pod_count { + if len(runningPods) >= podCount { break } }