aboutsummaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorHarmJ0y <will@harmj0y.net>2016-12-12 13:30:07 -0500
committerHarmJ0y <will@harmj0y.net>2016-12-12 13:30:07 -0500
commit031a7561c65ad9e39c0da6a8e31dc5dbc9211d34 (patch)
tree24e9c814b30516da36a1bf7257c6c06d344003c8 /Tests
parent0939af5bb2ee556ea998c3f0fd1e21ef72c41719 (diff)
downloadPowerSploit-031a7561c65ad9e39c0da6a8e31dc5dbc9211d34.tar.gz
PowerSploit-031a7561c65ad9e39c0da6a8e31dc5dbc9211d34.zip
removed Pester test for non-exported Invoke-ThreadedFunction function
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Recon.tests.ps112
1 files changed, 0 insertions, 12 deletions
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) {