mirror of
https://github.com/restic/restic.git
synced 2024-12-24 00:37:28 +00:00
Simplify code
This commit is contained in:
parent
ccc201ea5f
commit
7b64b890d7
1 changed files with 2 additions and 1 deletions
|
@ -511,7 +511,7 @@ func TestBackend(t testing.TB) {
|
||||||
// test that the blob is gone
|
// test that the blob is gone
|
||||||
ok, err := b.Test(h)
|
ok, err := b.Test(h)
|
||||||
test.OK(t, err)
|
test.OK(t, err)
|
||||||
test.Assert(t, ok == false, "removed blob still present")
|
test.Assert(t, !ok, "removed blob still present")
|
||||||
|
|
||||||
// create blob
|
// create blob
|
||||||
err = b.Save(h, strings.NewReader(ts.data))
|
err = b.Save(h, strings.NewReader(ts.data))
|
||||||
|
@ -553,6 +553,7 @@ func TestBackend(t testing.TB) {
|
||||||
|
|
||||||
found, err := b.Test(h)
|
found, err := b.Test(h)
|
||||||
test.OK(t, err)
|
test.OK(t, err)
|
||||||
|
test.Assert(t, found, fmt.Sprintf("id %q not found", id))
|
||||||
|
|
||||||
test.OK(t, b.Remove(h))
|
test.OK(t, b.Remove(h))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue