@@ -43,7 +43,7 @@ var _ = SIGDescribe("[Disruptive]NodeLease", func() {
43
43
c = f .ClientSet
44
44
ns = f .Namespace .Name
45
45
systemPods , err := e2epod .GetPodsInNamespace (c , ns , map [string ]string {})
46
- gomega . Expect (err ). To ( gomega . BeNil () )
46
+ framework . ExpectEqual (err , nil )
47
47
systemPodsNo = int32 (len (systemPods ))
48
48
if strings .Index (framework .TestContext .CloudConfig .NodeInstanceGroup , "," ) >= 0 {
49
49
framework .Failf ("Test dose not support cluster setup with more than one MIG: %s" , framework .TestContext .CloudConfig .NodeInstanceGroup )
@@ -94,13 +94,13 @@ var _ = SIGDescribe("[Disruptive]NodeLease", func() {
94
94
// the cluster is restored to health.
95
95
ginkgo .By ("waiting for system pods to successfully restart" )
96
96
err := e2epod .WaitForPodsRunningReady (c , metav1 .NamespaceSystem , systemPodsNo , 0 , framework .PodReadyBeforeTimeout , map [string ]string {})
97
- gomega . Expect (err ). To ( gomega . BeNil () )
97
+ framework . ExpectEqual (err , nil )
98
98
})
99
99
100
100
ginkgo .It ("node lease should be deleted when corresponding node is deleted" , func () {
101
101
leaseClient := c .CoordinationV1 ().Leases (v1 .NamespaceNodeLease )
102
102
err := e2enode .WaitForReadyNodes (c , framework .TestContext .CloudConfig .NumNodes , 10 * time .Minute )
103
- gomega . Expect (err ). To ( gomega . BeNil () )
103
+ framework . ExpectEqual (err , nil )
104
104
105
105
ginkgo .By ("verify node lease exists for every nodes" )
106
106
originalNodes , err := e2enode .GetReadySchedulableNodes (c )
@@ -124,11 +124,11 @@ var _ = SIGDescribe("[Disruptive]NodeLease", func() {
124
124
targetNumNodes := int32 (framework .TestContext .CloudConfig .NumNodes - 1 )
125
125
ginkgo .By (fmt .Sprintf ("decreasing cluster size to %d" , targetNumNodes ))
126
126
err = framework .ResizeGroup (group , targetNumNodes )
127
- gomega . Expect (err ). To ( gomega . BeNil () )
127
+ framework . ExpectEqual (err , nil )
128
128
err = framework .WaitForGroupSize (group , targetNumNodes )
129
- gomega . Expect (err ). To ( gomega . BeNil () )
129
+ framework . ExpectEqual (err , nil )
130
130
err = e2enode .WaitForReadyNodes (c , framework .TestContext .CloudConfig .NumNodes - 1 , 10 * time .Minute )
131
- gomega . Expect (err ). To ( gomega . BeNil () )
131
+ framework . ExpectEqual (err , nil )
132
132
targetNodes , err := e2enode .GetReadySchedulableNodes (c )
133
133
framework .ExpectNoError (err )
134
134
framework .ExpectEqual (len (targetNodes .Items ), int (targetNumNodes ))
0 commit comments