Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9d12fd

Browse files
committed
Merge pull request #8638 from jayunit100/fix_c_shadow
quick fix to global (and possibly shadowing) client var
2 parents f3dd404 + 56a356d commit d9d12fd

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

test/e2e/networking.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ import (
3131
. "github.com/onsi/gomega"
3232
)
3333

34-
var c *client.Client = nil
35-
3634
func LaunchNetTestPodPerNode(nodes *api.NodeList, name string, c *client.Client, ns string) []string {
3735
podNames := []string{}
3836

test/e2e/reboot.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ const (
5555
)
5656

5757
var _ = Describe("Reboot", func() {
58+
59+
var c *client.Client = nil
60+
5861
BeforeEach(func() {
5962
var err error
6063
c, err = loadClient()

test/e2e/ssh.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ import (
2020
"fmt"
2121
"strings"
2222

23+
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
24+
2325
. "github.com/onsi/ginkgo"
2426
. "github.com/onsi/gomega"
2527
)
2628

2729
var _ = Describe("SSH", func() {
30+
31+
var c *client.Client = nil
32+
2833
BeforeEach(func() {
2934
var err error
3035
c, err = loadClient()

0 commit comments

Comments
 (0)