Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RidAssetResolution test to open shared framework file with read share access #107112

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

elinor-fung
Copy link
Member

The RidAssetResolution test was reading Microsoft.NETCoreApp.deps.json in a non-shareable way, which could result in other tests failing when trying to run an application (since that reads the .deps.json). This changes the test to open with FileShare.Read by going through File.OpenRead.

The other two I just switched to File.OpenRead from File.Open with the equivalent arguments for consistency with the rest of HostModel and host tests.

Fixes #103743

cc @dotnet/appmodel @AaronRobinsonMSFT

@elinor-fung elinor-fung merged commit 4ef370f into dotnet:main Aug 29, 2024
71 checks passed
@elinor-fung elinor-fung deleted the fix103743 branch August 29, 2024 17:06
jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 17, 2024
…access (dotnet#107112)

The `RidAssetResolution` test was reading Microsoft.NETCoreApp.deps.json in a non-shareable way, which could result in other tests failing when trying to run an application (since that reads the .deps.json). This changes the test to open with `FileShare.Read` by going through `File.OpenRead`.

The other two I just switched to `File.OpenRead` from `File.Open` with the equivalent arguments for consistency with the rest of HostModel and host tests.
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AppHost.Bundle.Tests.BundledAppWithSubDirs.FrameworkDependent(options: None) failed in CI
2 participants