Skip to content

Commit 56df81a

Browse files
e2e,sgx: fix linter error: shadow declaration of err
rename err as errPodNotRunning so it does not shadow the previous declaration Signed-off-by: Hyeongju Johannes Lee <[email protected]>
1 parent 81b3864 commit 56df81a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/sgx/sgx.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ func describe() {
6565
e2ekubectl.RunKubectlOrDie(f.Namespace.Name, "apply", "-k", filepath.Dir(deploymentPluginPath))
6666

6767
ginkgo.By("waiting for SGX plugin's availability")
68-
podList, err := e2epod.WaitForPodsWithLabelRunningReady(ctx, f.ClientSet, f.Namespace.Name,
68+
podList, errPodNotRunning := e2epod.WaitForPodsWithLabelRunningReady(ctx, f.ClientSet, f.Namespace.Name,
6969
labels.Set{"app": "intel-sgx-plugin"}.AsSelector(), 1 /* one replica */, 100*time.Second)
70-
if err != nil {
70+
if errPodNotRunning != nil {
7171
e2edebug.DumpAllNamespaceInfo(ctx, f.ClientSet, f.Namespace.Name)
7272
e2ekubectl.LogFailedContainers(ctx, f.ClientSet, f.Namespace.Name, framework.Logf)
73-
framework.Failf("unable to wait for all pods to be running and ready: %v", err)
73+
framework.Failf("unable to wait for all pods to be running and ready: %v", errPodNotRunning)
7474
}
7575

7676
ginkgo.By("checking SGX plugin's securityContext")

0 commit comments

Comments
 (0)