Skip to content

Commit 1c5506a

Browse files
committed
fix golint: don't use underscores in Go names
1 parent 0155d18 commit 1c5506a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e_node/restart_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535

3636
// waitForPods waits for timeout duration, for pod_count.
3737
// If the timeout is hit, it returns the list of currently running pods.
38-
func waitForPods(f *framework.Framework, pod_count int, timeout time.Duration) (runningPods []*v1.Pod) {
38+
func waitForPods(f *framework.Framework, podCount int, timeout time.Duration) (runningPods []*v1.Pod) {
3939
for start := time.Now(); time.Since(start) < timeout; time.Sleep(10 * time.Second) {
4040
podList, err := f.PodClient().List(metav1.ListOptions{})
4141
if err != nil {
@@ -51,7 +51,7 @@ func waitForPods(f *framework.Framework, pod_count int, timeout time.Duration) (
5151
runningPods = append(runningPods, &pod)
5252
}
5353
framework.Logf("Running pod count %d", len(runningPods))
54-
if len(runningPods) >= pod_count {
54+
if len(runningPods) >= podCount {
5555
break
5656
}
5757
}

0 commit comments

Comments
 (0)