File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ limitations under the License.
17
17
package windows
18
18
19
19
import (
20
+ "context"
21
+
20
22
v1 "k8s.io/api/core/v1"
21
23
"k8s.io/apimachinery/pkg/api/resource"
22
24
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -48,14 +50,18 @@ var _ = SIGDescribe("[Feature:Windows] Cpu Resources", func() {
48
50
ginkgo .By ("Ensuring pods are still running" )
49
51
var allPods [](* v1.Pod )
50
52
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 ,
52
56
metav1.GetOptions {})
53
57
framework .ExpectNoError (err , "Error retrieving pod" )
54
58
framework .ExpectEqual (pod .Status .Phase , v1 .PodRunning )
55
59
allPods = append (allPods , pod )
56
60
}
57
61
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 ,
59
65
metav1.GetOptions {})
60
66
framework .ExpectNoError (err , "Error retrieving pod" )
61
67
framework .ExpectEqual (pod .Status .Phase , v1 .PodRunning )
You can’t perform that action at this time.
0 commit comments