Skip to content

Commit d2c1d4f

Browse files
committed
update psscript test since order is not guaranteed
1 parent ee44f94 commit d2c1d4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/PSScript/psscript.tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ Describe 'Tests for PSScript resource' {
187187
$result = dsc resource get -r $resourceType -i $yaml 2> $TestDrive/error.txt | ConvertFrom-Json
188188
$LASTEXITCODE | Should -Be 0 -Because (Get-Content $TestDrive/error.txt -Raw | Out-String)
189189
$result.actualState.output.Count | Should -Be 0 -Because ($result | ConvertTo-Json | Out-String)
190-
(Get-Content $TestDrive/error.txt -Raw) | Should -BeLike '*WARN*:*This is a warning*WARN*:*This is second warning*'
190+
(Get-Content $TestDrive/error.txt -Raw) | Should -BeLike '*WARN*:*This is a warning*'
191+
(Get-Content $TestDrive/error.txt -Raw) | Should -BeLike '*WARN*:*This is second warning*'
191192
}
192193

193194
It 'Write-Error shows up as error traces for <resourceType>' -TestCases $testCases {

0 commit comments

Comments
 (0)