Skip to content

Commit

Permalink
use t.TempDir
Browse files Browse the repository at this point in the history
  • Loading branch information
ardevd committed Jan 15, 2024
1 parent b184434 commit 75ac6b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions basic_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ XhkpT5dliEGFLNe6OOgeWTU1JpEXfCud/GImtNMHQi4EDWQfvWuCNGhOoQ==

// Now let's write the data to a file to make sure parseTLSAndMacaroon
// parses that properly as well.
tempDirPath, err := os.MkdirTemp("", ".testCreds")
require.NoError(t, err)
defer os.RemoveAll(tempDirPath)
tempDirPath := t.TempDir()

certPath := tempDirPath + "/tls.cert"
tlsPEMBytes := []byte(tlsData)
Expand Down

0 comments on commit 75ac6b0

Please sign in to comment.