We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ce380 commit ed4fae1Copy full SHA for ed4fae1
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Invoke-ListTests.ps1
@@ -79,7 +79,10 @@ function Invoke-ListTests {
79
if ($ReportFound) {
80
$AllReportTests = $IdentityTests + $DevicesTests
81
# Use HashSet for O(1) lookup performance
82
- $TestLookup = [System.Collections.Generic.HashSet[string]]::new([string[]]$AllReportTests)
+ $TestLookup = [System.Collections.Generic.HashSet[string]]::new()
83
+ foreach ($test in $AllReportTests) {
84
+ [void]$TestLookup.Add($test)
85
+ }
86
$FilteredTests = $TestResultsData.TestResults | Where-Object { $TestLookup.Contains($_.RowKey) }
87
$TestResultsData.TestResults = @($FilteredTests)
88
} else {
0 commit comments