mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
Clean up folders after -reset test
This commit is contained in:
parent
0c1ac568b5
commit
cb1678ebec
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user