@@ -117,7 +117,7 @@ var _ = Describe("bandwidth config test", func() {
117
117
StdinData : []byte (conf ),
118
118
}
119
119
120
- Expect (hostNs .Do (func (_ ns.NetNS ) error {
120
+ Expect (hostNs .Do (func (netNS ns.NetNS ) error {
121
121
defer GinkgoRecover ()
122
122
123
123
_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -166,7 +166,7 @@ var _ = Describe("bandwidth config test", func() {
166
166
StdinData : []byte (conf ),
167
167
}
168
168
169
- Expect (hostNs .Do (func (_ ns.NetNS ) error {
169
+ Expect (hostNs .Do (func (netNS ns.NetNS ) error {
170
170
defer GinkgoRecover ()
171
171
172
172
_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -216,7 +216,7 @@ var _ = Describe("bandwidth config test", func() {
216
216
StdinData : []byte (conf ),
217
217
}
218
218
219
- Expect (hostNs .Do (func (_ ns.NetNS ) error {
219
+ Expect (hostNs .Do (func (netNS ns.NetNS ) error {
220
220
defer GinkgoRecover ()
221
221
222
222
_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -264,7 +264,7 @@ var _ = Describe("bandwidth config test", func() {
264
264
StdinData : []byte (conf ),
265
265
}
266
266
267
- Expect (hostNs .Do (func (_ ns.NetNS ) error {
267
+ Expect (hostNs .Do (func (netNS ns.NetNS ) error {
268
268
defer GinkgoRecover ()
269
269
270
270
_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -312,7 +312,7 @@ var _ = Describe("bandwidth config test", func() {
312
312
StdinData : []byte (conf ),
313
313
}
314
314
315
- Expect (hostNs .Do (func (_ ns.NetNS ) error {
315
+ Expect (hostNs .Do (func (netNS ns.NetNS ) error {
316
316
defer GinkgoRecover ()
317
317
318
318
_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
@@ -371,7 +371,7 @@ var _ = Describe("bandwidth config test", func() {
371
371
StdinData : []byte (conf ),
372
372
}
373
373
374
- Expect (hostNs .Do (func (_ ns.NetNS ) error {
374
+ Expect (hostNs .Do (func (netNS ns.NetNS ) error {
375
375
defer GinkgoRecover ()
376
376
r , out , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
377
377
Expect (err ).NotTo (HaveOccurred (), string (out ))
@@ -454,7 +454,7 @@ var _ = Describe("bandwidth config test", func() {
454
454
})).To (Succeed ())
455
455
456
456
// Container ingress (host egress)
457
- Expect (hostNs .Do (func (_ ns.NetNS ) error {
457
+ Expect (hostNs .Do (func (n ns.NetNS ) error {
458
458
defer GinkgoRecover ()
459
459
460
460
vethLink , err := netlink .LinkByName (hostIfname )
@@ -520,7 +520,7 @@ var _ = Describe("bandwidth config test", func() {
520
520
StdinData : []byte (conf ),
521
521
}
522
522
523
- Expect (hostNs .Do (func (_ ns.NetNS ) error {
523
+ Expect (hostNs .Do (func (netNS ns.NetNS ) error {
524
524
defer GinkgoRecover ()
525
525
526
526
_ , _ , err := testutils .CmdAdd (containerNs .Path (), args .ContainerID , "" , []byte (conf ), func () error { return cmdAdd (args ) })
0 commit comments