container-disk, test: replace gomega matcher
Replace occurrences of `Expect(len($VAR)).To(Equal($X))` with
`Expect($VAR).To(HaveLen($X)` which is more gomega-idiomatic and gives
better error messages when the expectation fails.
@@ -218,7 +218,7 @@ var _ = Describe("ContainerDisk", func() {
containers := GenerateContainers(vmi, nil, "libvirt-runtime", "bin-volume")
Expect(err).ToNot(HaveOccurred())
- Expect(len(containers)).To(Equal(2))
+ Expect(containers).To(HaveLen(2))
Expect(containers[0].ImagePullPolicy).To(Equal(k8sv1.PullAlways))
Expect(containers[1].ImagePullPolicy).To(Equal(k8sv1.PullAlways))
})
