diff --git a/tests/Get-DbaExternalProcess.Tests.ps1 b/tests/Get-DbaExternalProcess.Tests.ps1 index b67ee7c911..7afff45668 100644 --- a/tests/Get-DbaExternalProcess.Tests.ps1 +++ b/tests/Get-DbaExternalProcess.Tests.ps1 @@ -37,7 +37,7 @@ Describe "$CommandName Integration Tests" -Tags "IntegrationTests" { It "returns a process" { Start-Sleep -Seconds 1 - $results = Get-DbaExternalProcess -ComputerName localhost | Select-Object -First 1 + $results = Get-DbaExternalProcess -ComputerName localhost | Where-Object { $_.Name -eq "cmd.exe" } $results.ComputerName | Should -Be "localhost" $results.Name | Should -Be "cmd.exe" $results.ProcessId | Should -Not -Be $null