Skip to content

Commit

Permalink
[dsccommunity#1258] SqlRS unit test making sure InitializeReportServe…
Browse files Browse the repository at this point in the history
…r CIM method is never called
  • Loading branch information
bozho committed Apr 25, 2019
1 parent bca5594 commit e3ca536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Unit/MSFT_SqlRS.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ try

Assert-MockCalled -CommandName Invoke-RsCimMethod -ParameterFilter {
$MethodName -eq 'InitializeReportServer'
} -Exactly -Times 1 -Scope It
} -Exactly -Times 0 -Scope It

Assert-MockCalled -CommandName Invoke-RsCimMethod -ParameterFilter {
$MethodName -eq 'SetDatabaseConnection'
Expand Down Expand Up @@ -562,7 +562,7 @@ try

Assert-MockCalled -CommandName Invoke-RsCimMethod -ParameterFilter {
$MethodName -eq 'InitializeReportServer'
} -Exactly -Times 1 -Scope It
} -Exactly -Times 0 -Scope It

Assert-MockCalled -CommandName Invoke-RsCimMethod -ParameterFilter {
$MethodName -eq 'SetDatabaseConnection'
Expand Down

0 comments on commit e3ca536

Please sign in to comment.