MCPcopy Index your code
hub / github.com/coder/coder / removeTmpDirUntilSuccess

Function removeTmpDirUntilSuccess

cli/parameter_internal_test.go:63–71  ·  view source on GitHub ↗

Need this for Windows because of a known issue with Go: https://github.com/golang/go/issues/52986

(t *testing.T, tempDir string)

Source from the content-addressed store, hash-verified

61// Need this for Windows because of a known issue with Go:
62// https://github.com/golang/go/issues/52986
63func 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}

Callers 1

Calls 3

RemoveAllMethod · 0.80
HelperMethod · 0.65
CleanupMethod · 0.65

Tested by

no test coverage detected