mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
CaretHighlightAdornerTests waited on the wall clock (3s budget) for the adorner's 1s real-time DispatcherTimer to remove it. Avalonia.Headless has no simulated clock, so under a loaded CI runner the dispatcher-thread timer plus the poll loop slipped past the tight budget and the test timed out intermittently. Extract the teardown the lifetime timer runs into Dismiss(); the test grabs the live adorner and calls it directly, verifying the unregister half without any timing dependency. Registration is still exercised through the real OnReferenceClicked path, and production behaviour is unchanged. Assisted-by: Claude:claude-opus-4-8:Claude Codepull/3756/head
2 changed files with 35 additions and 18 deletions
Loading…
Reference in new issue