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 match instead of Be for test.
  • Loading branch information
jshigetomi committed Feb 17, 2026
commit fe2014a174e71f6838cacfcb3fbf288761fe4bbe
2 changes: 1 addition & 1 deletion test/Microsoft.PowerShell.ThreadJob.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,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.ToString() | Should -Be "My Job Error!"
$results.ToString() | Should -Match "My Job Error!"
}
}
Loading