fix for multiple dependent modules
This commit is contained in:
Родитель
1e45aa834b
Коммит
114af5dcfd
|
@ -491,7 +491,7 @@ Describe "[Global Unit]" -Tag Launch_Deploy {
|
|||
($reqModules).RequiredModules.GetEnumerator() | ForEach-Object {
|
||||
Remove-Variable module -ErrorAction SilentlyContinue
|
||||
|
||||
$module = Get-Module $_.ModuleName -ListAvailable -ErrorAction SilentlyContinue
|
||||
$module = Get-Module $_.ModuleName -ListAvailable -ErrorAction SilentlyContinue | Select -First 1
|
||||
|
||||
It "[Global Unit]-[TestHost: ${env:ComputerName}] Must have the module [$($_.ModuleName)] available" {
|
||||
$module.Name | Should Not BeNullOrEmpty
|
||||
|
|
Загрузка…
Ссылка в новой задаче