Skip to content

Commit c2f6343

Browse files
committed
Consistent use of HaveLen() in e2e_test
1 parent 8d5bee2 commit c2f6343

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/e2e/suites/e2e/e2e_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ var _ = Describe("e2e tests", func() {
9292
ClusterName: clusterName,
9393
Namespace: namespace.Name,
9494
})
95-
Expect(len(workerMachines)).To(Equal(1))
96-
Expect(len(controlPlaneMachines)).To(Equal(3))
95+
Expect(workerMachines).To(HaveLen(1))
96+
Expect(controlPlaneMachines).To(HaveLen(3))
9797
})
9898
})
9999

@@ -118,8 +118,8 @@ var _ = Describe("e2e tests", func() {
118118
ClusterName: clusterName,
119119
Namespace: namespace.Name,
120120
})
121-
Expect(len(workerMachines)).To(Equal(1))
122-
Expect(len(controlPlaneMachines)).To(Equal(1))
121+
Expect(workerMachines).To(HaveLen(1))
122+
Expect(controlPlaneMachines).To(HaveLen(1))
123123

124124
shared.Byf("Waiting for worker nodes to be in Running phase")
125125
statusChecks := []framework.MachineStatusCheck{framework.MachinePhaseCheck(string(clusterv1.MachinePhaseRunning))}

0 commit comments

Comments
 (0)