Skip to content

Commit 18f8b1c

Browse files
committed
Update dsc_args.tests.ps1
1 parent 23deba9 commit 18f8b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc/tests/dsc_args.tests.ps1

+2-2
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)