Skip to content

Commit 1062189

Browse files
committed
Update Assert-SetupActionProperties test to handle errors gracefully during setup action
1 parent 4947e32 commit 1062189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/Private/Assert-SetupActionProperties.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,10 +608,10 @@ Describe 'Assert-SetupActionProperties' -Tag 'Private' {
608608

609609
It 'Should not throw an exception' {
610610
InModuleScope -ScriptBlock {
611-
Assert-SetupActionProperties -Property @{
611+
$null = Assert-SetupActionProperties -Property @{
612612
MediaPath = $TestDrive
613613
AllowDqRemoval = $true
614-
} -SetupAction 'Upgrade'
614+
} -SetupAction 'Upgrade' -ErrorAction 'Stop'
615615
}
616616
}
617617
}

0 commit comments

Comments
 (0)