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 May 6, 2019
1 parent 928f8a9 commit 6cf502f
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 @@ -657,7 +657,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 6cf502f

Please sign in to comment.