Skip to content

Commit

Permalink
plugins/main: Add missing error checks
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Rostecki <[email protected]>
  • Loading branch information
vadorovsky committed Sep 20, 2018
1 parent 1a3f49c commit 8c61a2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/main/bridge/bridge_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015 CNI authors
// Copyright 2015-2018 CNI authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -431,6 +431,7 @@ func (tester *testerV03x) cmdDelTest(tc testCase) {
Expect(link).To(BeNil())
return nil
})
Expect(err).NotTo(HaveOccurred())
}

type testerV01xOr02x struct {
Expand Down Expand Up @@ -939,6 +940,7 @@ var _ = Describe("bridge Operations", func() {
for _, tc := range testCases {
tc.cniVersion = "0.3.1"
_, _, err := setupBridge(tc.netConf())
Expect(err).NotTo(HaveOccurred())
link, err := netlink.LinkByName(BRNAME)
Expect(err).NotTo(HaveOccurred())
origMac := link.Attrs().HardwareAddr
Expand Down

0 comments on commit 8c61a2c

Please sign in to comment.