Skip to content

Commit 6d90c7a

Browse files
committed
Index into array
1 parent fe2014a commit 6d90c7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Microsoft.PowerShell.ThreadJob.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ 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 -Match "My Job Error!"
444+
$results | Should -Not -BeNullOrEmpty
445+
$results[0].ToString() | Should -Match "My Job Error!"
445446
}
446447
}

0 commit comments

Comments
 (0)