mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-01-16 16:04:25 +00:00
Add security improvements and race condition protection
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com>
This commit is contained in:
@@ -332,9 +332,10 @@ func TestShutdownCallbacks(t *testing.T) {
|
||||
func TestSelfSignedSSLCertificateReuse(t *testing.T) {
|
||||
logger.Init(true)
|
||||
|
||||
// Get cert directory to verify file creation
|
||||
certDir, err := getCertDirectory()
|
||||
// Get expected cert directory location
|
||||
cacheDir, err := os.UserCacheDir()
|
||||
require.NoError(t, err)
|
||||
certDir := filepath.Join(cacheDir, "resolvespec", "certs")
|
||||
|
||||
host := "localhost"
|
||||
certFile := filepath.Join(certDir, fmt.Sprintf("%s-cert.pem", host))
|
||||
|
||||
Reference in New Issue
Block a user