MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / cleanUpTemp

Function cleanUpTemp

pkg/cmd/package/support/pack_test.go:65–71  ·  view source on GitHub ↗

TODO Test and potentially remove manual clean-up when go version >= 1.20.0 cleanUpTemp is a temporary solution for windows to https://github.com/golang/go/issues/51442.

(tempDir string)

Source from the content-addressed store, hash-verified

63// TODO Test and potentially remove manual clean-up when go version >= 1.20.0
64// cleanUpTemp is a temporary solution for windows to https://github.com/golang/go/issues/51442.
65func cleanUpTemp(tempDir string) {
66 err := errors.New("init not nil")
67 for err != nil {
68 time.Sleep(time.Millisecond * 10)
69 err = os.RemoveAll(tempDir)
70 }
71}
72
73func TestBuildPackage_VerboseOutput(t *testing.T) {
74 basePath := setupForArchive(t)

Callers 2

TestPanicImmediatelyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected