소스 검색

Actually remove test file after test run

Jakob Borg 11 년 전
부모
커밋
74c39c677b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      internal/model/puller_test.go

+ 2 - 2
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{})