Skip to content

Commit

Permalink
select specific process
Browse files Browse the repository at this point in the history
  • Loading branch information
jpomfret committed Jan 7, 2025
1 parent 3dba5fd commit f868cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Get-DbaExternalProcess.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f868cea

Please sign in to comment.