mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-06 05:27:23 +00:00
Inline and remove testutil.TempDir
This commit is contained in:
@@ -12,8 +12,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"go.pinniped.dev/internal/testutil"
|
||||
)
|
||||
|
||||
//nolint:gochecknoglobals
|
||||
@@ -34,7 +32,7 @@ func PinnipedCLIPath(t *testing.T) string {
|
||||
|
||||
pinnipedCLIBinaryCache.mutex.Lock()
|
||||
defer pinnipedCLIBinaryCache.mutex.Unlock()
|
||||
path := filepath.Join(testutil.TempDir(t), "pinniped")
|
||||
path := filepath.Join(t.TempDir(), "pinniped")
|
||||
if pinnipedCLIBinaryCache.buf != nil {
|
||||
t.Log("using previously built pinniped CLI binary")
|
||||
//nolint:gosec // this is test code.
|
||||
|
||||
Reference in New Issue
Block a user