@@ -165,7 +165,7 @@ var _ = Describe("bandwidth test", func() {
165165StdinData : []byte (conf ),
166166}
167167
168- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
168+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
169169defer GinkgoRecover ()
170170r , out , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
171171Expect (err ).NotTo (HaveOccurred (), string (out ))
@@ -202,7 +202,7 @@ var _ = Describe("bandwidth test", func() {
202202return nil
203203})).To (Succeed ())
204204
205- Expect (hostNs .Do (func (n ns.NetNS ) error {
205+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
206206defer GinkgoRecover ()
207207
208208ifbLink , err := netlink .LinkByName (hostIfname )
@@ -260,7 +260,7 @@ var _ = Describe("bandwidth test", func() {
260260StdinData : []byte (conf ),
261261}
262262
263- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
263+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
264264defer GinkgoRecover ()
265265
266266_ , out , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , ifbDeviceName , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -271,7 +271,7 @@ var _ = Describe("bandwidth test", func() {
271271return nil
272272})).To (Succeed ())
273273
274- Expect (hostNs .Do (func (n ns.NetNS ) error {
274+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
275275defer GinkgoRecover ()
276276
277277containerIfLink , err := netlink .LinkByName (hostIfname )
@@ -327,7 +327,7 @@ var _ = Describe("bandwidth test", func() {
327327StdinData : []byte (conf ),
328328}
329329
330- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
330+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
331331defer GinkgoRecover ()
332332
333333_ , out , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , ifbDeviceName , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -338,7 +338,7 @@ var _ = Describe("bandwidth test", func() {
338338return nil
339339})).To (Succeed ())
340340
341- Expect (hostNs .Do (func (n ns.NetNS ) error {
341+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
342342defer GinkgoRecover ()
343343
344344containerIfLink , err := netlink .LinkByName (hostIfname )
@@ -396,7 +396,7 @@ var _ = Describe("bandwidth test", func() {
396396StdinData : []byte (conf ),
397397}
398398
399- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
399+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
400400defer GinkgoRecover ()
401401
402402_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -448,7 +448,7 @@ var _ = Describe("bandwidth test", func() {
448448StdinData : []byte (conf ),
449449}
450450
451- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
451+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
452452defer GinkgoRecover ()
453453r , out , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
454454Expect (err ).NotTo (HaveOccurred (), string (out ))
@@ -485,7 +485,7 @@ var _ = Describe("bandwidth test", func() {
485485return nil
486486})).To (Succeed ())
487487
488- Expect (hostNs .Do (func (n ns.NetNS ) error {
488+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
489489defer GinkgoRecover ()
490490
491491ifbLink , err := netlink .LinkByName (hostIfname )
@@ -551,7 +551,7 @@ var _ = Describe("bandwidth test", func() {
551551StdinData : []byte (conf ),
552552}
553553
554- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
554+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
555555defer GinkgoRecover ()
556556
557557_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -601,7 +601,7 @@ var _ = Describe("bandwidth test", func() {
601601StdinData : []byte (conf ),
602602}
603603
604- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
604+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
605605defer GinkgoRecover ()
606606_ , out , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
607607Expect (err ).NotTo (HaveOccurred (), string (out ))
@@ -669,7 +669,7 @@ var _ = Describe("bandwidth test", func() {
669669StdinData : []byte (conf ),
670670}
671671
672- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
672+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
673673defer GinkgoRecover ()
674674r , out , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
675675Expect (err ).NotTo (HaveOccurred (), string (out ))
@@ -706,7 +706,7 @@ var _ = Describe("bandwidth test", func() {
706706return nil
707707})).To (Succeed ())
708708
709- Expect (hostNs .Do (func (n ns.NetNS ) error {
709+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
710710defer GinkgoRecover ()
711711
712712ifbLink , err := netlink .LinkByName (hostIfname )
@@ -768,7 +768,7 @@ var _ = Describe("bandwidth test", func() {
768768StdinData : []byte (conf ),
769769}
770770
771- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
771+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
772772defer GinkgoRecover ()
773773
774774_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -801,7 +801,7 @@ var _ = Describe("bandwidth test", func() {
801801StdinData : []byte (conf ),
802802}
803803
804- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
804+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
805805defer GinkgoRecover ()
806806
807807_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -853,7 +853,7 @@ var _ = Describe("bandwidth test", func() {
853853StdinData : []byte (conf ),
854854}
855855
856- Expect (hostNs .Do (func (netNS ns.NetNS ) error {
856+ Expect (hostNs .Do (func (_ ns.NetNS ) error {
857857defer GinkgoRecover ()
858858
859859_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
0 commit comments