mirror of
https://github.com/rancher/plugins.git
synced 2025-08-31 12:38:56 +00:00
pkg/ip: Add missing error check
Signed-off-by: Michal Rostecki <mrostecki@suse.de>
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
var _ = Describe("IpforwardLinux", func() {
|
||||
It("echo1 must not write the file if content is 1", func() {
|
||||
file, err := ioutil.TempFile(os.TempDir(), "containernetworking")
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
defer os.Remove(file.Name())
|
||||
err = echo1(file.Name())
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
Reference in New Issue
Block a user