Need this for Windows because of a known issue with Go: https://github.com/golang/go/issues/52986
(t *testing.T, tempDir string)
| 1333 | // Need this for Windows because of a known issue with Go: |
| 1334 | // https://github.com/golang/go/issues/52986 |
| 1335 | func removeTmpDirUntilSuccessAfterTest(t *testing.T, tempDir string) { |
| 1336 | t.Helper() |
| 1337 | t.Cleanup(func() { |
| 1338 | err := os.RemoveAll(tempDir) |
| 1339 | for err != nil { |
| 1340 | err = os.RemoveAll(tempDir) |
| 1341 | } |
| 1342 | }) |
| 1343 | } |
no test coverage detected