Skip to content

Commit 6d1f610

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
address copilot feedback
1 parent 0b2f063 commit 6d1f610

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dsc/tests/dsc_discovery.tests.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Describe 'tests for resource discovery' {
8484
$resources.Count | Should -Be 0
8585
}
8686

87-
It 'warns on invalid semver' {
87+
It 'info on invalid semver' {
8888
$manifest = @'
8989
{
9090
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
@@ -102,7 +102,9 @@ Describe 'tests for resource discovery' {
102102
'@
103103
Set-Content -Path "$testdrive/test.dsc.resource.json" -Value $manifest
104104
$null = dsc -l info resource list 2> "$testdrive/error.txt"
105-
(Get-Content -Raw "$testdrive/error.txt") | Should -Match 'INFO.*?invalid semantic version' -Because (Get-Content -Raw "$testdrive/error.txt")
105+
$LASTEXITCODE | Should -Be 0
106+
$errorTxt = Get-Content -Raw "$testdrive/error.txt"
107+
$errorTxt | Should -Match 'INFO.*?invalid semantic version' -Because $errorTxt
106108
}
107109
}
108110

0 commit comments

Comments
 (0)