errcheck: More error handling

This commit is contained in:
Alexander Neumann 2021-01-30 16:46:34 +01:00
parent 16313bfcc9
commit 3c753c071c
5 changed files with 32 additions and 12 deletions

View file

@ -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)