mirror of
https://github.com/rancher/plugins.git
synced 2025-09-02 10:10:49 +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() {
|
var _ = Describe("IpforwardLinux", func() {
|
||||||
It("echo1 must not write the file if content is 1", func() {
|
It("echo1 must not write the file if content is 1", func() {
|
||||||
file, err := ioutil.TempFile(os.TempDir(), "containernetworking")
|
file, err := ioutil.TempFile(os.TempDir(), "containernetworking")
|
||||||
|
Expect(err).NotTo(HaveOccurred())
|
||||||
defer os.Remove(file.Name())
|
defer os.Remove(file.Name())
|
||||||
err = echo1(file.Name())
|
err = echo1(file.Name())
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
Reference in New Issue
Block a user