diff --git a/tests/Unit/Private/ConvertFrom-ServiceStartMode.Tests.ps1 b/tests/Unit/Private/ConvertFrom-ServiceStartMode.Tests.ps1 index 1b42762068..67e51e1ef2 100644 --- a/tests/Unit/Private/ConvertFrom-ServiceStartMode.Tests.ps1 +++ b/tests/Unit/Private/ConvertFrom-ServiceStartMode.Tests.ps1 @@ -11,7 +11,7 @@ BeforeDiscovery { if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable)) { # Redirect all streams to $null, except the error stream (stream 2) - & "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null + & "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null } # If the dependencies has not been resolved, this will throw an error. diff --git a/tests/Unit/Private/Get-InstanceId.Tests.ps1 b/tests/Unit/Private/Get-InstanceId.Tests.ps1 index 7a2cf7b6fd..f84301bfb6 100644 --- a/tests/Unit/Private/Get-InstanceId.Tests.ps1 +++ b/tests/Unit/Private/Get-InstanceId.Tests.ps1 @@ -11,7 +11,7 @@ BeforeDiscovery { if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable)) { # Redirect all streams to $null, except the error stream (stream 2) - & "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null + & "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null } # If the dependencies has not been resolved, this will throw an error. diff --git a/tests/Unit/Private/Get-RegistryPropertyValue.Tests.ps1 b/tests/Unit/Private/Get-RegistryPropertyValue.Tests.ps1 index 4f12cda1a5..2d1870f392 100644 --- a/tests/Unit/Private/Get-RegistryPropertyValue.Tests.ps1 +++ b/tests/Unit/Private/Get-RegistryPropertyValue.Tests.ps1 @@ -10,7 +10,7 @@ BeforeDiscovery { if (-not (Get-Module -Name 'DscResource.Test' -ListAvailable)) { # Redirect all streams to $null, except the error stream (stream 2) - & "$PSScriptRoot/../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null + & "$PSScriptRoot/../../../build.ps1" -Tasks 'noop' 2>&1 4>&1 5>&1 6>&1 > $null } # If the dependencies has not been resolved, this will throw an error.