diff --git a/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 b/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 index eea47eb71..4285e0479 100644 --- a/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 +++ b/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 @@ -557,7 +557,7 @@ Describe 'Test Install-PSResource for V2 Server scenarios' -tags 'CI' { # Test that AuthenticodeCheck parameter displays warning on non-Windows It "Install with AuthenticodeCheck on non-Windows should display warning" -Skip:(Get-IsWindows) { Install-PSResource -Name $testModuleName -Repository $PSGalleryName -TrustRepository -AuthenticodeCheck -WarningVariable warn -WarningAction SilentlyContinue - $warn[0] | Should -Contain "Authenticode check cannot be performed on Linux or MacOS" + $warn[0] | Should -Match "Authenticode check cannot be performed on Linux or MacOS" $res = Get-InstalledPSResource $testModuleName $res.Name | Should -Be $testModuleName }