Clean up folders after -reset test

This commit is contained in:
Jakob Borg 2014-12-30 10:47:36 +01:00
parent 0c1ac568b5
commit cb1678ebec

View File

@ -20,6 +20,7 @@ package integration
import (
"os"
"os/exec"
"path/filepath"
"testing"
"time"
)
@ -54,6 +55,14 @@ func TestCLIReset(t *testing.T) {
t.Errorf("%s still exists", dir)
}
}
// Clean up
dirs, err = filepath.Glob("*.syncthing-reset-*")
if err != nil {
t.Fatal(err)
}
removeAll(dirs...)
}
func TestCLIGenerate(t *testing.T) {