Skip to content

Failed tests swallow exception message in GivenThatIWantToInstallDotnetFromAScript.Dispose() #659

@PhilippNaused

Description

@PhilippNaused

Found a flaky test failure:

Failed Microsoft.DotNet.InstallationScript.Tests.GivenThatIWantToInstallDotnetFromAScript.WhenInstallingTheSdk(channel: "5.0", quality: null, versionRegex: "5\\.0\\..*") [22 s]
Error Message:
  System.Exception : Failed to remove C:\Users\cloudtest\AppData\Local\Temp\InstallScript-Tests\haa2c0db.rv2
Stack Trace:
  at Microsoft.DotNet.InstallationScript.Tests.GivenThatIWantToInstallDotnetFromAScript.Dispose() in D:\a\_work\1\s\tests\Install-Scripts.Test\GivenThatIWantToInstallDotnetFromAScript.cs:line 210

This is also where the warning tests\Install-Scripts.Test\GivenThatIWantToInstallDotnetFromAScript.cs(208,48): warning CS0168: The variable 'e' is declared but never used comes from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedIssue is awaiting triage

    Type

    No type

    Projects

    Status

    Rollout

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions