Skip to content

Commit 79c94b1

Browse files
Fix resource path in test
1 parent 1bce77d commit 79c94b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/DscResource/PSResourceGetDSCResource.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ function SetupDsc {
1818

1919
$script:dscExe = Get-Command -name dsc -CommandType Application | Select-Object -First 1
2020

21-
$loadedPSResourceGet = Get-Module PSResourceGet -ErrorAction SilentlyContinue
22-
$resources = Get-ChildItem $loadedPSResourceGet.ModuleBase/*resource.json -ErrorAction SilentlyContinue
21+
$expectedModulePath = Join-Path $env:BUILD_SOURCESDIRECTORY 'out'
22+
$resources = Get-ChildItem $expectedModulePath/*resource.json -ErrorAction SilentlyContinue
2323

2424
if (-not $script:dscExe) {
2525
throw "Could not find dsc executable in PATH after setup."

0 commit comments

Comments
 (0)