diff --git a/basic_client_test.go b/basic_client_test.go index 6c805f3..73c44af 100644 --- a/basic_client_test.go +++ b/basic_client_test.go @@ -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)