From 4a8cc99a637fd7c0180642eecbe5551f44308c9d Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Tue, 7 Dec 2021 20:05:02 +0300 Subject: [PATCH] [macos] pester: Replace service status stopped to none (#4677) * pester: Replace service status stopped to none * validate stopped or none --- images/macos/tests/WebServers.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/macos/tests/WebServers.Tests.ps1 b/images/macos/tests/WebServers.Tests.ps1 index 67e4ca301..ae9dc724f 100644 --- a/images/macos/tests/WebServers.Tests.ps1 +++ b/images/macos/tests/WebServers.Tests.ps1 @@ -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)" } }