Need this for Windows because of a known issue with Go: https://github.com/golang/go/issues/52986
(t *testing.T, tempDir string)
| 61 | // Need this for Windows because of a known issue with Go: |
| 62 | // https://github.com/golang/go/issues/52986 |
| 63 | func removeTmpDirUntilSuccess(t *testing.T, tempDir string) { |
| 64 | t.Helper() |
| 65 | t.Cleanup(func() { |
| 66 | err := os.RemoveAll(tempDir) |
| 67 | for err != nil { |
| 68 | err = os.RemoveAll(tempDir) |
| 69 | } |
| 70 | }) |
| 71 | } |
no test coverage detected