File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Integration/Commands Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,15 +117,15 @@ END
117117
118118 It ' Should throw error when alert already exists' {
119119 # First create the alert
120- $script :sqlServerObject | New-SqlDscAgentAlert - Name ' IntegrationTest_DuplicateAlert' - Severity 16 - ErrorAction Stop
120+ $script :sqlServerObject | New-SqlDscAgentAlert - Name ' IntegrationTest_DuplicateAlert' - Severity 15 - ErrorAction Stop
121121
122122 # Try to create it again - should throw
123- { $script :sqlServerObject | New-SqlDscAgentAlert - Name ' IntegrationTest_DuplicateAlert' - Severity 14 } |
123+ { $script :sqlServerObject | New-SqlDscAgentAlert - Name ' IntegrationTest_DuplicateAlert' - Severity 14 - ErrorAction Stop } |
124124 Should - Throw
125125 }
126126
127127 It ' Should throw error when both Severity and MessageId are specified' {
128- { $script :sqlServerObject | New-SqlDscAgentAlert - Name ' IntegrationTest_InvalidAlert' - Severity 16 - MessageId 50001 } |
128+ { $script :sqlServerObject | New-SqlDscAgentAlert - Name ' IntegrationTest_InvalidAlert' - Severity 16 - MessageId 50001 - ErrorAction Stop } |
129129 Should - Throw
130130 }
131131}
You can’t perform that action at this time.
0 commit comments