Merge pull request #878 from maiqueb/fix-ginkgo-linter-warnings

linter: fix ginkgolinter errors
This commit is contained in:
Casey Callendrello 2023-04-04 16:23:41 +02:00 committed by GitHub
commit 63235a2531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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
})
})

View File

@ -914,7 +914,7 @@ var _ = Describe("tuning plugin", func() {
link, err := netlink.LinkByName(IFNAME)
Expect(err).NotTo(HaveOccurred())
Expect(link.Attrs().RawFlags&unix.IFF_ALLMULTI != 0).To(BeTrue())
Expect(link.Attrs().RawFlags & unix.IFF_ALLMULTI).NotTo(BeZero())
if testutils.SpecVersionHasCHECK(ver) {
n := &TuningConf{}
@ -995,7 +995,7 @@ var _ = Describe("tuning plugin", func() {
link, err := netlink.LinkByName(IFNAME)
Expect(err).NotTo(HaveOccurred())
Expect(link.Attrs().RawFlags&unix.IFF_ALLMULTI != 0).To(BeTrue())
Expect(link.Attrs().RawFlags & unix.IFF_ALLMULTI).NotTo(BeZero())
err = testutils.CmdDel(originalNS.Path(),
args.ContainerID, "", func() error { return cmdDel(args) })