Skip to content

Avoid accessing IVs apis off of the UI thread #2379

Description

When the Test Explorer requests for a list of test containers from the test adapters through a property, the nodejs adapter calls IVs APIs to retrieve necessary information, but doesn't do so after switching to the UI thread which can cause deadlocks.

It is recommended that the thread should instead be switched to the UI thread using JTF.SwitchToMainThreadAsync before accessing the IVs APIs and switched off of it using await Task.Default when done,

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions