[macos] pester: Replace service status stopped to none (#4677)

* pester: Replace service status stopped to none

* validate stopped or none
This commit is contained in:
Aleksandr Chebotov
2021-12-07 20:05:02 +03:00
committed by GitHub
parent 57cf70f791
commit 4a8cc99a63

View File

@@ -6,7 +6,7 @@ Describe "Apache" -Skip:($os.IsLessThanCatalina) {
}
It "Apache Service" {
brew services list | Out-String | Should -Match "httpd\s+stopped"
brew services list | Out-String | Should -Match "httpd\s+(stopped|none)"
}
}
@@ -16,6 +16,6 @@ Describe "Nginx" -Skip:($os.IsLessThanCatalina) {
}
It "Nginx Service" {
brew services list | Out-String | Should -Match "nginx\s+stopped"
brew services list | Out-String | Should -Match "nginx\s+(stopped|none)"
}
}