Skip to content

Commit daeeb70

Browse files
anamnavianamnavi
andauthored
Fix broken Install-PSResource test with warning condition incorrect (#1899)
Co-authored-by: anamnavi <annavied@microsoft.com>
1 parent b85a9a8 commit daeeb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ Describe 'Test Install-PSResource for V2 Server scenarios' -tags 'CI' {
557557
# Test that AuthenticodeCheck parameter displays warning on non-Windows
558558
It "Install with AuthenticodeCheck on non-Windows should display warning" -Skip:(Get-IsWindows) {
559559
Install-PSResource -Name $testModuleName -Repository $PSGalleryName -TrustRepository -AuthenticodeCheck -WarningVariable warn -WarningAction SilentlyContinue
560-
$warn[0] | Should -Contain "Authenticode check cannot be performed on Linux or MacOS"
560+
$warn[0] | Should -Match "Authenticode check cannot be performed on Linux or MacOS"
561561
$res = Get-InstalledPSResource $testModuleName
562562
$res.Name | Should -Be $testModuleName
563563
}

0 commit comments

Comments
 (0)