Skip to content

Commit b50531a

Browse files
committed
Update: formatting, cleanup, ExpectEqual statements
1 parent 5a00878 commit b50531a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/e2e/common/podtemplates.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ package common
1818

1919
import (
2020
"encoding/json"
21-
//"fmt"
2221

2322
v1 "k8s.io/api/core/v1"
2423
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24+
"k8s.io/apimachinery/pkg/types"
2525
"k8s.io/apimachinery/pkg/util/uuid"
2626
"k8s.io/kubernetes/test/e2e/framework"
27-
"k8s.io/apimachinery/pkg/types"
2827

2928
"github.com/onsi/ginkgo"
3029
)
@@ -39,7 +38,7 @@ var _ = ginkgo.Describe("[sig-architecture] PodTemplates", func() {
3938
// get a list of PodTemplates (in all namespaces to hit endpoint)
4039
podTemplateList, err := f.ClientSet.CoreV1().PodTemplates("").List(metav1.ListOptions{})
4140
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")
4342

4443
// create a PodTemplate
4544
_, err = f.ClientSet.CoreV1().PodTemplates(testNamespaceName).Create(&v1.PodTemplate{
@@ -90,6 +89,6 @@ var _ = ginkgo.Describe("[sig-architecture] PodTemplates", func() {
9089
LabelSelector: "podtemplate-static=true",
9190
})
9291
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")
9493
})
9594
})

0 commit comments

Comments
 (0)