Simplify code

This commit is contained in:
Alexander Neumann 2017-04-11 20:08:25 +02:00
parent ccc201ea5f
commit 7b64b890d7
1 changed files with 2 additions and 1 deletions

View File

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