From 3f3cf7d99c97c5e743e97320cc25c39dfb195f30 Mon Sep 17 00:00:00 2001 From: Nicholas Ellis Date: Fri, 24 Jul 2020 13:51:09 -0400 Subject: [PATCH] Fixing Pester Issue --- tests/Unit/CMSystemDiscovery.tests.ps1 | 2 +- tests/Unit/CMUserDiscovery.tests.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/CMSystemDiscovery.tests.ps1 b/tests/Unit/CMSystemDiscovery.tests.ps1 index feaedfb..5576068 100644 --- a/tests/Unit/CMSystemDiscovery.tests.ps1 +++ b/tests/Unit/CMSystemDiscovery.tests.ps1 @@ -497,7 +497,7 @@ try ADContainersToExclude = $adContainersExclude } - $excludeThrow = "ADContainersToToExclude and ADContainersToToInclude contain to same entry LDAP://OU=Test1,DC=contoso,DC=com, remove from one of the arrays." + $excludeThrow = "ADContainersToExclude and ADContainersToInclude contain to same entry $adContainersExclude, remove from one of the arrays." $enableDeltaThrowMsg = "DeltaDiscoveryMins is not specified, specify DeltaDiscoveryMins when enabling Delta Discovery." Mock -CommandName Get-TargetResource -MockWith { $getTargetResourceStandardReturn } diff --git a/tests/Unit/CMUserDiscovery.tests.ps1 b/tests/Unit/CMUserDiscovery.tests.ps1 index e183f05..4d98c73 100644 --- a/tests/Unit/CMUserDiscovery.tests.ps1 +++ b/tests/Unit/CMUserDiscovery.tests.ps1 @@ -444,7 +444,7 @@ try $deltaThrow = 'When changing delta schedule, delta schedule must be enabled.' $scheduleThrow = "Invalid parameter usage specifying an Interval and didn't specify count." - $excludeThrow = "ADContainersToToExclude and ADContainersToToInclude contain to same entry LDAP://OU=Test1,DC=contoso,DC=com, remove from one of the arrays." + $excludeThrow = "ADContainersToExclude and ADContainersToInclude contain to same entry $adContainersExclude, remove from one of the arrays." $enableDeltaThrowMsg = "DeltaDiscoveryMins is not specified, specify DeltaDiscoveryMins when enabling Delta Discovery." Mock -CommandName Get-TargetResource -MockWith { $getTargetResourceStandardReturn }