Skip to content

Commit b8bd4d2

Browse files
committed
Fixed number of names Set-CimInstance gets called
1 parent 864757f commit b8bd4d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/Unit/MSFT_xComputer.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ try
556556
}
557557
Set-TargetResource -Name $env:ComputerName | Should BeNullOrEmpty
558558
Set-TargetResource -Name $env:COMPUTERNAME -DomainName 'Contoso.com' -Credential $Credential -UnjoinCredential $Credential -Description 'This is my computer' | Should BeNullOrEmpty
559-
Assert-MockCalled -CommandName Set-CimInstance -Exactly -Times 2 -Scope It
559+
Assert-MockCalled -CommandName Set-CimInstance -Exactly -Times 1 -Scope It
560560
}
561561
}
562562
}

0 commit comments

Comments
 (0)