Skip to content

Rewrite It_retries_on_failure_to_create_apphost test in AppHost.cs #48202

Open
@akoeplinger

Description

@akoeplinger

Found this in #48034 and disabled the test on Unix.

With the changes from dotnet/runtime#110417 we now delete the apphost if it exists.
This breaks the test since it tries to lock the file via FileShare.None to test that retries happen, but FileShare.None doesn't prevent a file from being deleted on Unix platforms, see dotnet/runtime#52700

var intermediateAppHost = Path.Combine(intermediateDirectory, "apphost" + Constants.ExeSuffix);
using (var stream = new FileStream(intermediateAppHost, FileMode.Open, FileAccess.Read, FileShare.None))

The test likely needs to be rewritten.

FYI @jtschuster

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions