From 031a7561c65ad9e39c0da6a8e31dc5dbc9211d34 Mon Sep 17 00:00:00 2001 From: HarmJ0y Date: Mon, 12 Dec 2016 13:30:07 -0500 Subject: removed Pester test for non-exported Invoke-ThreadedFunction function --- Tests/Recon.tests.ps1 | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'Tests') diff --git a/Tests/Recon.tests.ps1 b/Tests/Recon.tests.ps1 index c291135..a297ed9 100644 --- a/Tests/Recon.tests.ps1 +++ b/Tests/Recon.tests.ps1 @@ -110,18 +110,6 @@ Describe 'Get-NameField' { } -Describe 'Invoke-ThreadedFunction' { - It "Should allow threaded ping" { - $Hosts = ,"localhost" * 100 - $Ping = {param($ComputerName) if(Test-Connection -ComputerName $ComputerName -Count 1 -Quiet -ErrorAction Stop){$ComputerName}} - $Hosts = Invoke-ThreadedFunction -NoImports -ComputerName $Hosts -ScriptBlock $Ping -Threads 20 - if($Hosts.length -ne 100) { - Throw 'Error in using Invoke-ThreadedFunction to ping localhost' - } - } -} - - Describe "Get-NetLocalGroup" { It "Should return results for local machine administrators" { if ( (Get-NetLocalGroup | Measure-Object).count -lt 1) { -- cgit v1.2.3