Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 360dcb6

Browse files
committed
fix comment
1 parent 42e7d73 commit 360dcb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dep_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ func (tg *testgoData) mustNotExist(path string) {
478478

479479
// cleanup cleans up a test that runs testgo.
480480
func (tg *testgoData) cleanup() {
481+
// NOTE(mattn): It seems that sometimes git.exe is not dead
482+
// when cleanup() is called. But we do not know any way to wait for it.
481483
if runtime.GOOS == "windows" {
482484
mu.Lock()
483485
exec.Command(`taskkill`, `/F`, `/IM`, `git.exe`).Run()
@@ -494,8 +496,6 @@ func (tg *testgoData) cleanup() {
494496
tg.check(os.RemoveAll(path))
495497
}
496498
if tg.tempdir != "" {
497-
// NOTE(mattn): It seems that sometimes git.exe is not dead
498-
// when clean() is called. But we do not know any way to wait for it.
499499
tg.check(os.RemoveAll(tg.tempdir))
500500
}
501501
}

0 commit comments

Comments
 (0)