From 7b64b890d73544dc8f865c8e33692c3ac3d84c99 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 11 Apr 2017 20:08:25 +0200 Subject: [PATCH] Simplify code --- src/restic/backend/test/tests.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/restic/backend/test/tests.go b/src/restic/backend/test/tests.go index be3946296..fd32e0826 100644 --- a/src/restic/backend/test/tests.go +++ b/src/restic/backend/test/tests.go @@ -511,7 +511,7 @@ func TestBackend(t testing.TB) { // test that the blob is gone ok, err := b.Test(h) test.OK(t, err) - test.Assert(t, ok == false, "removed blob still present") + test.Assert(t, !ok, "removed blob still present") // create blob err = b.Save(h, strings.NewReader(ts.data)) @@ -553,6 +553,7 @@ func TestBackend(t testing.TB) { found, err := b.Test(h) test.OK(t, err) + test.Assert(t, found, fmt.Sprintf("id %q not found", id)) test.OK(t, b.Remove(h))