Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsreyn committed Feb 21, 2025
1 parent c698b68 commit 89139f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powershell-adapter/Tests/powershellgroup.config.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ Describe 'PowerShell adapter resource tests' {
- name: Class-resource Info
type: TestClassResourceNotExist/TestClassResourceNotExist
'@
$yaml | dsc -l trace config get -f - 2> $TestDrive/tracing.txt
$yaml | dsc -l trace config get -f - 2> "$TestDrive/tracing.txt"
$LASTEXITCODE | Should -Be 2
"$TestDrive/tracing.txt" | Should -FileContentMatch 'ERROR: DSC resource TestClassResourceNotExist/TestClassResourceNotExist module not found.'
"$TestDrive/tracing.txt" | Should -FileContentMatch 'DSC resource TestClassResourceNotExist/TestClassResourceNotExist module not found.'
}

It 'Test works on config with class-based resources' {
Expand Down

0 comments on commit 89139f3

Please sign in to comment.