Remove flags from tests

This commit is contained in:
Alexander Neumann committed 2015-06-21 17:40:21 +02:00
1 parent 002c7883c3
commit 030f08a410
7 files changed
+44 -20

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ var testFiles = []struct {
}
func createTempDir(t *testing.T) string {
tempdir, err := ioutil.TempDir(*TestTempDir, "restic-test-")
tempdir, err := ioutil.TempDir(TestTempDir, "restic-test-")
OK(t, err)
for _, test := range testFiles {
@@ -49,7 +49,7 @@ func createTempDir(t *testing.T) string {
func TestTree(t *testing.T) {
dir := createTempDir(t)
defer func() {
if *TestCleanup {
if TestCleanup {
OK(t, os.RemoveAll(dir))
}
}()