mirror of
https://github.com/restic/restic.git
synced 2025-11-16 09:53:28 +00:00
Add more error handling
This commit is contained in:
@@ -30,7 +30,9 @@ func TestNoSpacePermanent(t *testing.T) {
|
||||
|
||||
be, err := Open(context.Background(), Config{Path: dir})
|
||||
rtest.OK(t, err)
|
||||
defer be.Close()
|
||||
defer func() {
|
||||
rtest.OK(t, be.Close())
|
||||
}()
|
||||
|
||||
h := restic.Handle{Type: restic.ConfigFile}
|
||||
err = be.Save(context.Background(), h, nil)
|
||||
|
||||
Reference in New Issue
Block a user