Skip to content

Commit 13ef514

Browse files
committed
fix windows powershell
1 parent 373595e commit 13ef514

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/integration.tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ Describe 'Out-Sentry captures expected stack traces for piped command' {
162162
}
163163

164164
It 'PowerShell' {
165-
clear
166165
$output = $integrationTestScriptContent | pwsh -Command -
167166
$checkOutput.Invoke($output, $expected)
168167
}
@@ -287,7 +286,7 @@ Describe 'Out-Sentry captures expected stack traces for PowerShell.Create()' {
287286
$childPs.AddScript($integrationTestScriptContent)
288287
$output = $childPs.Invoke()
289288
# Output has weirdly behaving line breaks in this case so let's normalize them:
290-
$output = ($output | Join-String -Separator "`n") -split "[`r`n]+"
289+
$output = ($output -join "`n") -split "[`r`n]+"
291290
$checkOutput.Invoke($output, $expected)
292291
}
293292
}

0 commit comments

Comments
 (0)