linter: fix ginkgolinter errors
Use: - `BeEmpty` instead of `HaveLen(0)` - `Expect(x).To(BeZero())` instead of `Expect(x == 0).To(BeTrue())` Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
This commit is contained in:
@ -283,7 +283,7 @@ var _ = Describe("Link", func() {
|
||||
// this will delete the host endpoint too
|
||||
addr, err := ip.DelLinkByNameAddr(containerVethName)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(addr).To(HaveLen(0))
|
||||
Expect(addr).To(BeEmpty())
|
||||
return nil
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user