From 114af5dcfdeec776d289889a87ee94a9972d9b82 Mon Sep 17 00:00:00 2001 From: Dan Cuomo Date: Fri, 25 Jun 2021 20:46:21 -0400 Subject: [PATCH] fix for multiple dependent modules --- Tests/unit/global.unit.tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/unit/global.unit.tests.ps1 b/Tests/unit/global.unit.tests.ps1 index 20bf8e1..a72daf9 100644 --- a/Tests/unit/global.unit.tests.ps1 +++ b/Tests/unit/global.unit.tests.ps1 @@ -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