diff --git a/test/end-to-end/test_studio_with_ssl_cert_file_envvar_set.ps1 b/test/end-to-end/test_studio_with_ssl_cert_file_envvar_set.ps1 index 860f136f56..233f3e1c22 100644 --- a/test/end-to-end/test_studio_with_ssl_cert_file_envvar_set.ps1 +++ b/test/end-to-end/test_studio_with_ssl_cert_file_envvar_set.ps1 @@ -18,7 +18,7 @@ if($IsLinux) { $sslCertFileCheck = "test -f `$SSL_CERT_FILE" $sslCertFilePrint = "echo `$SSL_CERT_FILE" $sslCacheCertFileCheck = "test -f '/hab/cache/ssl/$e2e_certname'" - $sslCertFileNotSetCheck = "test ! -v SSL_CERT_FILE" + $sslCertFileNotSetCheck = "test $SSL_CERT_FILE = $(hab pkg path core/cacerts)/ssl/certs/cacert.pem" } else { $sslCertFileCheck = "exit (!(Test-Path `$env:SSL_CERT_FILE))" $sslCertFilePrint = "`$env:SSL_CERT_FILE.Replace('\','/')" @@ -139,8 +139,6 @@ Context "SSL_CERT_FILE is passed into the studio" { } } -Write-Host "--- Testing SSL_CERT_FILE is not set" - Context "SSL_CERT_FILE isn't set" { BeforeEach { Remove-CachedCertificate