Browse Source

Clean up folders after -reset test

Jakob Borg 10 years ago
parent
commit
cb1678ebec
1 changed files with 9 additions and 0 deletions
  1. 9 0
      test/cli_test.go

+ 9 - 0
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) {