From 8c61a2c2f3ab5228104130356f32fb374bc4a7c9 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Thu, 20 Sep 2018 11:06:28 +0200 Subject: [PATCH] plugins/main: Add missing error checks Signed-off-by: Michal Rostecki --- plugins/main/bridge/bridge_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/main/bridge/bridge_test.go b/plugins/main/bridge/bridge_test.go index 6ed07a5e..aa1f8300 100644 --- a/plugins/main/bridge/bridge_test.go +++ b/plugins/main/bridge/bridge_test.go @@ -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. @@ -431,6 +431,7 @@ func (tester *testerV03x) cmdDelTest(tc testCase) { Expect(link).To(BeNil()) return nil }) + Expect(err).NotTo(HaveOccurred()) } type testerV01xOr02x struct { @@ -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