From cb1678ebecf77e69e47c694c1c3ecebadbfe5ee5 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 30 Dec 2014 10:47:36 +0100 Subject: [PATCH] Clean up folders after -reset test --- test/cli_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/cli_test.go b/test/cli_test.go index 85e3fe9d..03144ca2 100644 --- a/test/cli_test.go +++ b/test/cli_test.go @@ -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) {