Skip to content

Commit

Permalink
resolve merge conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: h0nIg <[email protected]>
  • Loading branch information
h0nIg committed Oct 11, 2024
1 parent 8324a2e commit 649d054
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions plugins/meta/bandwidth/bandwidth_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var _ = Describe("bandwidth config test", func() {
StdinData: []byte(conf),
}

Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(netNS ns.NetNS) error {
defer GinkgoRecover()

_, _, err := testutils.CmdAdd(containerNs.Path(), args.ContainerID, "", []byte(conf), func() error { return cmdAdd(args) })
Expand Down Expand Up @@ -166,7 +166,7 @@ var _ = Describe("bandwidth config test", func() {
StdinData: []byte(conf),
}

Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(netNS ns.NetNS) error {
defer GinkgoRecover()

_, _, err := testutils.CmdAdd(containerNs.Path(), args.ContainerID, "", []byte(conf), func() error { return cmdAdd(args) })
Expand Down Expand Up @@ -216,7 +216,7 @@ var _ = Describe("bandwidth config test", func() {
StdinData: []byte(conf),
}

Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(netNS ns.NetNS) error {
defer GinkgoRecover()

_, _, err := testutils.CmdAdd(containerNs.Path(), args.ContainerID, "", []byte(conf), func() error { return cmdAdd(args) })
Expand Down Expand Up @@ -264,7 +264,7 @@ var _ = Describe("bandwidth config test", func() {
StdinData: []byte(conf),
}

Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(netNS ns.NetNS) error {
defer GinkgoRecover()

_, _, err := testutils.CmdAdd(containerNs.Path(), args.ContainerID, "", []byte(conf), func() error { return cmdAdd(args) })
Expand Down Expand Up @@ -312,7 +312,7 @@ var _ = Describe("bandwidth config test", func() {
StdinData: []byte(conf),
}

Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(netNS ns.NetNS) error {
defer GinkgoRecover()

_, _, err := testutils.CmdAdd(containerNs.Path(), args.ContainerID, "", []byte(conf), func() error { return cmdAdd(args) })
Expand Down Expand Up @@ -371,7 +371,7 @@ var _ = Describe("bandwidth config test", func() {
StdinData: []byte(conf),
}

Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(netNS ns.NetNS) error {
defer GinkgoRecover()
r, out, err := testutils.CmdAdd(containerNs.Path(), args.ContainerID, "", []byte(conf), func() error { return cmdAdd(args) })
Expect(err).NotTo(HaveOccurred(), string(out))
Expand Down Expand Up @@ -454,7 +454,7 @@ var _ = Describe("bandwidth config test", func() {
})).To(Succeed())

// Container ingress (host egress)
Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(n ns.NetNS) error {
defer GinkgoRecover()

vethLink, err := netlink.LinkByName(hostIfname)
Expand Down Expand Up @@ -520,7 +520,7 @@ var _ = Describe("bandwidth config test", func() {
StdinData: []byte(conf),
}

Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(netNS ns.NetNS) error {
defer GinkgoRecover()

_, _, err := testutils.CmdAdd(containerNs.Path(), args.ContainerID, "", []byte(conf), func() error { return cmdAdd(args) })
Expand Down
12 changes: 6 additions & 6 deletions plugins/meta/bandwidth/bandwidth_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ var _ = Describe("bandwidth test", func() {
})).To(Succeed())

// Container ingress (host egress)
Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(n ns.NetNS) error {
defer GinkgoRecover()

vethLink, err := netlink.LinkByName(hostIfname)
Expand Down Expand Up @@ -381,7 +381,7 @@ var _ = Describe("bandwidth test", func() {
})).To(Succeed())

// Container ingress (host egress)
Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(n ns.NetNS) error {
defer GinkgoRecover()

vethLink, err := netlink.LinkByName(hostIfname)
Expand Down Expand Up @@ -638,7 +638,7 @@ var _ = Describe("bandwidth test", func() {
})).To(Succeed())

// Container ingress (host egress)
Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(n ns.NetNS) error {
defer GinkgoRecover()

vethLink, err := netlink.LinkByName(hostIfname)
Expand Down Expand Up @@ -888,7 +888,7 @@ var _ = Describe("bandwidth test", func() {

// check container ingress side / host egress side, we should not have any htb qdisc/classes/filters defined for the host veth
// only the qdisc ingress + a noqueue qdisc
Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(n ns.NetNS) error {
defer GinkgoRecover()

containerIfLink, err := netlink.LinkByName(hostIfname)
Expand Down Expand Up @@ -957,7 +957,7 @@ var _ = Describe("bandwidth test", func() {
return nil
})).To(Succeed())

Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(n ns.NetNS) error {
defer GinkgoRecover()

containerIfLink, err := netlink.LinkByName(hostIfname)
Expand Down Expand Up @@ -1133,7 +1133,7 @@ var _ = Describe("bandwidth test", func() {
})).To(Succeed())

// Container ingress (host egress)
Expect(hostNs.Do(func(_ ns.NetNS) error {
Expect(hostNs.Do(func(n ns.NetNS) error {
defer GinkgoRecover()

vethLink, err := netlink.LinkByName(hostIfname)
Expand Down

0 comments on commit 649d054

Please sign in to comment.