mirror of
https://github.com/restic/restic.git
synced 2025-03-30 00:00:14 +01:00
backend/test: remove redundant test call to the backend
This commit is contained in:
parent
17b585f7c7
commit
2e58561ad6
1 changed files with 1 additions and 6 deletions
|
@ -816,7 +816,7 @@ func (s *Suite[C]) TestBackend(t *testing.T) {
|
|||
h := backend.Handle{Type: tpe, Name: id.String()}
|
||||
ret, err := beTest(context.TODO(), b, h)
|
||||
test.OK(t, err)
|
||||
test.Assert(t, !ret, "blob was found to exist before creating")
|
||||
test.Assert(t, !ret, "id %q was found (but should not have)", ts.id)
|
||||
|
||||
// try to stat a not existing blob
|
||||
_, err = b.Stat(context.TODO(), h)
|
||||
|
@ -829,11 +829,6 @@ func (s *Suite[C]) TestBackend(t *testing.T) {
|
|||
test.Assert(t, err != nil, "blob could be read before creation")
|
||||
test.Assert(t, b.IsNotExist(err), "IsNotExist() did not recognize Load() error: %v", err)
|
||||
test.Assert(t, b.IsPermanentError(err), "IsPermanentError() did not recognize Load() error: %v", err)
|
||||
|
||||
// try to get string out, should fail
|
||||
ret, err = beTest(context.TODO(), b, h)
|
||||
test.OK(t, err)
|
||||
test.Assert(t, !ret, "id %q was found (but should not have)", ts.id)
|
||||
}
|
||||
|
||||
// add files
|
||||
|
|
Loading…
Add table
Reference in a new issue