Fix txqueuelen being accidentally set to zero
TxQLen was unintentionally set to 0 due to a struct literal. Signed-off-by: Gudmundur Bjarni Olafsson <gudmundur.bjarni@gmail.com>
This commit is contained in:

committed by
Casey Callendrello

parent
c11ed48733
commit
3a49cff1f6
@ -48,11 +48,11 @@ var _ = Describe("Sysctl tests", func() {
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
testIfaceName = fmt.Sprintf("cnitest.%d", rand.Intn(100000))
|
||||
testLinkAttrs := netlink.NewLinkAttrs()
|
||||
testLinkAttrs.Name = testIfaceName
|
||||
testLinkAttrs.Namespace = netlink.NsFd(int(testNs.Fd()))
|
||||
testIface := &netlink.Dummy{
|
||||
LinkAttrs: netlink.LinkAttrs{
|
||||
Name: testIfaceName,
|
||||
Namespace: netlink.NsFd(int(testNs.Fd())),
|
||||
},
|
||||
LinkAttrs: testLinkAttrs,
|
||||
}
|
||||
|
||||
err = netlink.LinkAdd(testIface)
|
||||
|
Reference in New Issue
Block a user