Skip to content

Flaky: Reports_a_failed_click_without_leaving_the_chooser_wait_unhandled trips on other tests' unobserved task exceptions #1131

Closed

Description

@kblok

DispatchLocatorActionTests.Reports_a_failed_click_without_leaving_the_chooser_wait_unhandled failed 1 of 24 stress runs (message not captured). It listens to the process-wide TaskScheduler.UnobservedTaskException for 'filechooser' text, so a concurrent test can trip it. Needs a repro that captures the message; isolate the listener from other tests.

Found while fixing flaky clocks (#1006, #929; PR #1129).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ls2e1yaZFgZ3FEJkYScfkK

Activity

  1. kblok commented on Nov 5, 2026

    @kblok
    MemberAuthor

    Closing. It never reproduced (0 of 40 runs). #1134 makes the test print the leaked exception text and flush earlier tests' garbage before it subscribes to the process-wide listener. Reopen if it fails again in CI; the failure message will now show the source.

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