Skip to content

Commit

Permalink
fixing CI integration test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
parthopdas committed Aug 15, 2023
1 parent 7fd2837 commit 8db5e7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TestProjects/run-integrationtests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ cmd /c echo "Clear up the vstest.console.exe error..."
$obtainedFile = Join-Path $testResults "obtained.txt"
$xml = [xml] (gc $trx)
($xml.TestRun.Results.UnitTestResult | Sort-Object -Property testName | % { "[$($_.outcome)] $($_.testName) $($_.Output.ErrorInfo.Message)" }) >$obtainedFile
$expected = gc (Join-Path $SrcDir "integrationtests.approved.txt")
$obtained = gc $obtainedFile
$expected = gc (Join-Path $SrcDir "integrationtests.approved.txt") | % { $_.TrimEnd() }
$obtained = gc $obtainedFile | % { $_.TrimEnd() }

$diff = Compare-Object $expected $obtained -CaseSensitive
if ($diff.Length)
Expand Down

0 comments on commit 8db5e7a

Please sign in to comment.