aboutsummaryrefslogtreecommitdiff
path: root/lib/git/git_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-10-05 02:51:12 +0700
committerShulhan <ms@kilabit.info>2022-10-05 02:51:12 +0700
commitc2270f4bc01d075b448797543344118768f2fd80 (patch)
treed7611020ec9948ea4e338422129a66ad5ae7fc5b /lib/git/git_test.go
parent00b6c3c97d91139a3f8a3e8e6ed80dbe8b065e92 (diff)
downloadpakakeh.go-c2270f4bc01d075b448797543344118768f2fd80.tar.xz
lib/git: fix test with -count=X, where X>1
Diffstat (limited to 'lib/git/git_test.go')
-rw-r--r--lib/git/git_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/git/git_test.go b/lib/git/git_test.go
index 0e9bfaeb..6b1098d9 100644
--- a/lib/git/git_test.go
+++ b/lib/git/git_test.go
@@ -35,6 +35,7 @@ func TestClone(t *testing.T) {
for _, c := range cases {
t.Log(c.desc)
mock.Reset(true)
+ os.RemoveAll(_testRepoDir)
err := Clone(_testRemoteURL, c.dest)
if err != nil {
@@ -355,9 +356,6 @@ func TestMain(m *testing.M) {
fmt.Printf("remote URL: %s\n", _testRemoteURL)
fmt.Printf("repo dir : %s\n", _testRepoDir)
- // Cleaning up for TestClone
- os.RemoveAll(_testRepoDir)
-
s := m.Run()
mock.Close()