Skip to content

Commit 21f0f35

Browse files
author
Andrew
authored
Update dsc_args.tests.ps1
1 parent 72bb968 commit 21f0f35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc/tests/dsc_args.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ resources:
292292
}
293293

294294
It 'Test operation on the adapter itself should fail' {
295-
dsc resource test -r Microsoft.DSC/PowerShell 2> $TestDrive/tracing.txt
296-
$LASTEXITCODE | Should -Be 1
295+
'abc' | dsc resource test -r Microsoft.DSC/PowerShell 2> $TestDrive/tracing.txt
296+
$LASTEXITCODE | Should -Be 2
297297
"$TestDrive/tracing.txt" | Should -FileContentMatchExactly 'Can not perform this operation on the adapter'
298298
}
299299

0 commit comments

Comments
 (0)