Skip to content

Commit 886214f

Browse files
author
Patrick Lang
committed
Fix recent context change after rebase
1 parent 63ff616 commit 886214f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/e2e/windows/cpu_limits.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ limitations under the License.
1717
package windows
1818

1919
import (
20+
"context"
21+
2022
v1 "k8s.io/api/core/v1"
2123
"k8s.io/apimachinery/pkg/api/resource"
2224
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -48,14 +50,18 @@ var _ = SIGDescribe("[Feature:Windows] Cpu Resources", func() {
4850
ginkgo.By("Ensuring pods are still running")
4951
var allPods [](*v1.Pod)
5052
for _, p := range podsDecimal {
51-
pod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Get(p.Name,
53+
pod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Get(
54+
context.TODO(),
55+
p.Name,
5256
metav1.GetOptions{})
5357
framework.ExpectNoError(err, "Error retrieving pod")
5458
framework.ExpectEqual(pod.Status.Phase, v1.PodRunning)
5559
allPods = append(allPods, pod)
5660
}
5761
for _, p := range podsMilli {
58-
pod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Get(p.Name,
62+
pod, err := f.ClientSet.CoreV1().Pods(f.Namespace.Name).Get(
63+
context.TODO(),
64+
p.Name,
5965
metav1.GetOptions{})
6066
framework.ExpectNoError(err, "Error retrieving pod")
6167
framework.ExpectEqual(pod.Status.Phase, v1.PodRunning)

0 commit comments

Comments
 (0)