From 74c39c677bea5b913567cf875ee534d280d3e219 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 17 Jan 2015 22:00:38 +0100 Subject: [PATCH] Actually remove test file after test run --- internal/model/puller_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/model/puller_test.go b/internal/model/puller_test.go index 8ab426d29..8673b49dd 100644 --- a/internal/model/puller_test.go +++ b/internal/model/puller_test.go @@ -393,7 +393,7 @@ func TestDeregisterOnFailInCopy(t *testing.T) { blocks[5], blocks[0], blocks[0], blocks[8], }, } - defer os.Remove(defTempNamer.TempName("filex")) + defer os.Remove("testdata/" + defTempNamer.TempName("filex")) db, _ := leveldb.Open(storage.NewMemStorage(), nil) cw := config.Wrap("/tmp/test", config.Configuration{}) @@ -481,7 +481,7 @@ func TestDeregisterOnFailInPull(t *testing.T) { blocks[5], blocks[0], blocks[0], blocks[8], }, } - defer os.Remove(defTempNamer.TempName("filex")) + defer os.Remove("testdata/" + defTempNamer.TempName("filex")) db, _ := leveldb.Open(storage.NewMemStorage(), nil) cw := config.Wrap("/tmp/test", config.Configuration{})