Skip to content

Commit 2bf0771

Browse files
committed
Update test according to the code change
1 parent a7374ef commit 2bf0771

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Modules/Microsoft.Azure.Functions.PowerShellWorker.Tests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ Describe 'Azure Functions PowerShell Langauge Worker Helper Module Tests' {
1111
$workerDll = Get-ChildItem -Path $binFolder -Filter "Microsoft.Azure.Functions.PowerShellWorker.dll" -Recurse | Select-Object -First 1
1212

1313
$moduleFolder = Join-Path -Path $workerDll.Directory.FullName -ChildPath "Modules\Microsoft.Azure.Functions.PowerShellWorker"
14-
$modulePath = Join-Path -Path $moduleFolder -ChildPath "Microsoft.Azure.Functions.PowerShellWorker.psd1"
14+
$pubFolder = Join-Path -Path $workerDll.Directory.FullName -ChildPath "publish"
15+
Copy-Item -Path $moduleFolder/* -Destination $pubFolder -ErrorAction SilentlyContinue
16+
17+
$modulePath = Join-Path -Path $pubFolder -ChildPath "Microsoft.Azure.Functions.PowerShellWorker.psd1"
1518
Import-Module $modulePath
1619

1720
# Helper function that tests hashtable equality

0 commit comments

Comments
 (0)