Skip to content

Commit 031a756

Browse files
committed
removed Pester test for non-exported Invoke-ThreadedFunction function
1 parent 0939af5 commit 031a756

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Tests/Recon.tests.ps1

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,6 @@ Describe 'Get-NameField' {
110110
}
111111

112112

113-
Describe 'Invoke-ThreadedFunction' {
114-
It "Should allow threaded ping" {
115-
$Hosts = ,"localhost" * 100
116-
$Ping = {param($ComputerName) if(Test-Connection -ComputerName $ComputerName -Count 1 -Quiet -ErrorAction Stop){$ComputerName}}
117-
$Hosts = Invoke-ThreadedFunction -NoImports -ComputerName $Hosts -ScriptBlock $Ping -Threads 20
118-
if($Hosts.length -ne 100) {
119-
Throw 'Error in using Invoke-ThreadedFunction to ping localhost'
120-
}
121-
}
122-
}
123-
124-
125113
Describe "Get-NetLocalGroup" {
126114
It "Should return results for local machine administrators" {
127115
if ( (Get-NetLocalGroup | Measure-Object).count -lt 1) {

0 commit comments

Comments
 (0)