Move Server and Key to new sub-package

This commit is contained in:
Alexander Neumann
2015-04-26 14:46:15 +02:00
parent 8498753eb7
commit d19b23d4f1
28 changed files with 317 additions and 356 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ var testFiles = []struct {
// prepareDir creates a temporary directory and returns it.
func prepareDir(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 prepareDir(t *testing.T) string {
func TestTree(t *testing.T) {
dir := prepareDir(t)
defer func() {
if *testCleanup {
if *TestCleanup {
OK(t, os.RemoveAll(dir))
}
}()