Skip to content

C# unit test TestAppDomainProcessExitEvenHandlerNotLeaking is flaky #10813

Closed

Description

Steps to reproduce

  • The unit test TestAppDomainProcessExitEvenHandlerNotLeaking is flaky.
  • Currently is the top 1 faling test in the last 30 days. Failed 20 times out of 87 runs (23% failure rate).
  • And all failures have the same error message and stack trace.
  • Seems to have been introduced 10/10 in Add test for the even handler leaking fix #10768.

Error Message

Assert.DoesNotContain() Failure
Found: (filter expression)
In value: Delegate[] [EventHandler { Method = Void DisposeOnShutdown(System.Object, System.EventArgs), Target = null }, EventHandler { Method = Void CurrentDomain_ProcessExit(System.Object, System.EventArgs), Target = null }]

Stack Trace

at PSTests.Sequential.RunspaceTests.TestAppDomainProcessExitEvenHandlerNotLeaking() in D:\a\1\s\test\xUnit\csharp\test_Runspace.cs:line 127

PowerShell-CI-windows - Test failure report
image

Expected behavior

Test results should be consistent.

Actual behavior

Test is flaky.

Environment data

Unit tests must be executed in a windows platform.

Activity

  1. added
    Issue-Question
    on Oct 17, 2019
  2. added
    WG-Quality-Test
    on Oct 17, 2019
  3. iSazonov commented on Jan 31, 2020

    @iSazonov
    Collaborator

    Dongbo Wang (@daxian-dbw) Can we close the issue?

  4. daxian-dbw commented on Jan 31, 2020

    @daxian-dbw
    Member

    No, the test is still flaky and is marked as pending. Didn't get around to fix it yet.

  5. added
    Issue-Bug
    and removed
    Issue-Question
    on Jan 31, 2020
  6. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  7. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  8. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  9. added
    Resolution-No Activity
    on Nov 16, 2023
  10. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

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

Metadata

Metadata

Labels

Issue-BugResolution-No ActivityWG-Quality-Test

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions