Skip to content

Commit fe2014a

Browse files
committed
Use match instead of Be for test.
1 parent 4b7a497 commit fe2014a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Microsoft.PowerShell.ThreadJob.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,6 @@ Describe 'Job2 class API tests' -Tags 'CI' {
441441

442442
$job = Start-ThreadJob -ScriptBlock { throw "My Job Error!" } | Wait-Job
443443
$results = $job | Receive-Job 2>&1
444-
$results.ToString() | Should -Be "My Job Error!"
444+
$results.ToString() | Should -Match "My Job Error!"
445445
}
446446
}

0 commit comments

Comments
 (0)