mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Clean up folders after -reset test
This commit is contained in:
parent
0c1ac568b5
commit
cb1678ebec
@ -20,6 +20,7 @@ package integration
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -54,6 +55,14 @@ func TestCLIReset(t *testing.T) {
|
|||||||
t.Errorf("%s still exists", dir)
|
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) {
|
func TestCLIGenerate(t *testing.T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user