Don't test for a PID file, because they no longer exist
@@ -12,13 +12,11 @@ Describe "Clean Habitat Shutdown" {
try { Invoke-WebRequest "http://localhost" }
catch [Microsoft.PowerShell.Commands.HttpResponseException] { $headers = $_.Exception.Response.Headers }
[string]$headers.Server | Should -BeLike "nginx/*"
- Test-Path C:\hab\svc\nginx\PID | Should -Be $true
}
It "Stops all processes" {
Stop-Service Habitat
Get-Process hab-sup -ErrorAction SilentlyContinue | Should -Be $null
Get-Process hab-launch -ErrorAction SilentlyContinue | Should -Be $null
Get-Process nginx -ErrorAction SilentlyContinue | Should -Be $null
- Test-Path C:\hab\svc\nginx\PID | Should -Be $false
}
}
