@@ -18,13 +18,12 @@ package common
18
18
19
19
import (
20
20
"encoding/json"
21
- //"fmt"
22
21
23
22
v1 "k8s.io/api/core/v1"
24
23
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24
+ "k8s.io/apimachinery/pkg/types"
25
25
"k8s.io/apimachinery/pkg/util/uuid"
26
26
"k8s.io/kubernetes/test/e2e/framework"
27
- "k8s.io/apimachinery/pkg/types"
28
27
29
28
"github.com/onsi/ginkgo"
30
29
)
@@ -39,7 +38,7 @@ var _ = ginkgo.Describe("[sig-architecture] PodTemplates", func() {
39
38
// get a list of PodTemplates (in all namespaces to hit endpoint)
40
39
podTemplateList , err := f .ClientSet .CoreV1 ().PodTemplates ("" ).List (metav1.ListOptions {})
41
40
framework .ExpectNoError (err , "failed to list all PodTemplates" )
42
- framework .ExpectEqual (len (podTemplateList .Items ) == 0 , true , "unable to find templates" )
41
+ framework .ExpectEqual (len (podTemplateList .Items ), 0 , "unable to find templates" )
43
42
44
43
// create a PodTemplate
45
44
_ , err = f .ClientSet .CoreV1 ().PodTemplates (testNamespaceName ).Create (& v1.PodTemplate {
@@ -90,6 +89,6 @@ var _ = ginkgo.Describe("[sig-architecture] PodTemplates", func() {
90
89
LabelSelector : "podtemplate-static=true" ,
91
90
})
92
91
framework .ExpectNoError (err , "failed to list PodTemplate" )
93
- framework .ExpectEqual (len (podTemplateListWithLabel .Items ) == 0 , true , "PodTemplate list returned items, failed to delete PodTemplate" )
92
+ framework .ExpectEqual (len (podTemplateListWithLabel .Items ), 0 , "PodTemplate list returned items, failed to delete PodTemplate" )
94
93
})
95
94
})
0 commit comments