Browse Source

Fix test leak

Audrius Butkevicius 11 years ago
parent
commit
cf4ca7b6a8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      internal/files/blockmap_test.go

+ 3 - 1
internal/files/blockmap_test.go

@@ -173,7 +173,7 @@ func TestBlockMapAddUpdateWipe(t *testing.T) {
 	f3.Flags = 0
 	f3.Flags = 0
 }
 }
 
 
-func TestBlockMapFinderLookup(t *testing.T) {
+func TestBlockFinderLookup(t *testing.T) {
 	db, f := setup()
 	db, f := setup()
 
 
 	m1 := NewBlockMap(db, "folder1")
 	m1 := NewBlockMap(db, "folder1")
@@ -232,4 +232,6 @@ func TestBlockMapFinderLookup(t *testing.T) {
 	if counter != 1 {
 	if counter != 1 {
 		t.Fatal("Incorrect count")
 		t.Fatal("Incorrect count")
 	}
 	}
+
+	f1.Flags = 0
 }
 }