From cf4ca7b6a876ef0a162c5f5e1130fae06774e1fe Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Fri, 24 Oct 2014 22:23:19 +0100 Subject: [PATCH] Fix test leak --- internal/files/blockmap_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/files/blockmap_test.go b/internal/files/blockmap_test.go index ea195261b..feb30c9df 100644 --- a/internal/files/blockmap_test.go +++ b/internal/files/blockmap_test.go @@ -173,7 +173,7 @@ func TestBlockMapAddUpdateWipe(t *testing.T) { f3.Flags = 0 } -func TestBlockMapFinderLookup(t *testing.T) { +func TestBlockFinderLookup(t *testing.T) { db, f := setup() m1 := NewBlockMap(db, "folder1") @@ -232,4 +232,6 @@ func TestBlockMapFinderLookup(t *testing.T) { if counter != 1 { t.Fatal("Incorrect count") } + + f1.Flags = 0 }