Skip to content

Task.Run inside a test will result in deadlock if a control was created previously #2123

Description

@costin-zaharia

Hi,

I'm not sure whether an issue with NUnit but the following test will always result in a deadlock:

[Test]
public async Task Deadlock()
{
    new Control();

    await Task.Run(() => { int x = 42; });
}

Version used: 3.6.1

Thanks,
Costin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions