errcheck: More error handling
This commit is contained in:
parent
16313bfcc9
commit
3c753c071c
5 changed files with 32 additions and 12 deletions
|
@ -23,7 +23,9 @@ func TestRcloneExit(t *testing.T) {
|
|||
return
|
||||
}
|
||||
rtest.OK(t, err)
|
||||
defer be.Close()
|
||||
defer func() {
|
||||
rtest.OK(t, be.Close())
|
||||
}()
|
||||
|
||||
err = be.cmd.Process.Kill()
|
||||
rtest.OK(t, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue