Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
removed Pester test for non-exported Invoke-ThreadedFunction function
Browse files Browse the repository at this point in the history
  • Loading branch information
HarmJ0y committed Dec 12, 2016
1 parent 0939af5 commit 031a756
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Tests/Recon.tests.ps1
Expand Up @@ -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) {
Expand Down

0 comments on commit 031a756

Please sign in to comment.