Skip to content

Commit 624e8d7

Browse files
SteveL-MSFTSteve Lee (POWERSHELL HE/HIM) (from Dev Box)
authored andcommitted
fix psscript test since order is not exact
1 parent 29d0d4d commit 624e8d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/PSScript/psscript.tests.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ Describe 'Tests for PSScript resource' {
320320
$result = dsc -l trace resource get -r $resourceType -i $yaml 2> $TestDrive/error.txt | ConvertFrom-Json
321321
$LASTEXITCODE | Should -Be 0 -Because (Get-Content $TestDrive/error.txt -Raw | Out-String)
322322
$result.actualState.output.Count | Should -Be 0 -Because ($result | ConvertTo-Json | Out-String)
323-
(Get-Content $TestDrive/error.txt -Raw) | Should -BeLike '*WARN*:*This is a warning*INFO*:*This is a host message*INFO*:*This is a verbose message*'
323+
(Get-Content $TestDrive/error.txt -Raw) | Should -BeLike '*WARN*:*This is a warning*'
324+
(Get-Content $TestDrive/error.txt -Raw) | Should -BeLike '*INFO*:*This is a host message*'
325+
(Get-Content $TestDrive/error.txt -Raw) | Should -BeLike '*INFO*:*This is a verbose message*'
324326
}
325327
}

0 commit comments

Comments
 (0)