mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Merge pull request #135610 from soltysh/err_race
test/e2e: explicitly use new err variable inside parallelized code
This commit is contained in:
@@ -252,7 +252,8 @@ var _ = SIGDescribe("Job", func() {
|
||||
Namespace: pod.Namespace,
|
||||
},
|
||||
}
|
||||
err = f.ClientSet.CoreV1().Pods(pod.Namespace).EvictV1(ctx, evictTarget)
|
||||
// use new variable explicitly here, to ensure it doesn't escape the scope of goroutines
|
||||
err := f.ClientSet.CoreV1().Pods(pod.Namespace).EvictV1(ctx, evictTarget)
|
||||
framework.ExpectNoError(err, "failed to evict the pod: %s/%s", pod.Name, pod.Namespace)
|
||||
|
||||
ginkgo.By(fmt.Sprintf("Awaiting for the pod: %s/%s to be deleted", pod.Name, pod.Namespace))
|
||||
|
||||
Reference in New Issue
Block a user