Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use exception message
  • Loading branch information
jshigetomi committed Feb 17, 2026
commit fab07eb9ac01164653916bc2400dfbe9d0881c08
2 changes: 1 addition & 1 deletion test/Microsoft.PowerShell.ThreadJob.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,6 @@ Describe 'Job2 class API tests' -Tags 'CI' {
$job = Start-ThreadJob -ScriptBlock { throw "My Job Error!" } | Wait-Job
$results = $job | Receive-Job 2>&1
$results | Should -Not -BeNullOrEmpty
$results[0].ToString() | Should -Match "My Job Error!"
$results[0].Exception.Message | Should -Be "My Job Error!"
}
}
Loading