Skip to content

Wait for the deferred zoom font disposal in ConsoleTests - #2861

Merged
iloveeclipse merged 1 commit into
eclipse-platform:masterfrom
vogella:fix-zoom-font-dispose-test
Aug 10, 2026
Merged

Wait for the deferred zoom font disposal in ConsoleTests#2861
iloveeclipse merged 1 commit into
eclipse-platform:masterfrom
vogella:fix-zoom-font-dispose-test

Conversation

@vogella

@vogella vogella commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

ConsoleZoomHandler disposes the custom zoom fonts of a removed console one UI cycle later via timerExec, but testRemovingConsoleDisposesZoomFont asserted the disposal immediately after the console list had drained. When the console list emptied quickly and nothing pumped the display afterwards, the assertion ran before the timer fired, so the test failed sporadically on the macOS CI runners.

The test now polls for both conditions with TestUtil.waitWhile instead of a single immediate assertion, which also replaces the hand-rolled wait loop. Locally all 16 ConsoleTests pass.

ConsoleZoomHandler disposes the custom zoom fonts of a removed console
one UI cycle later via timerExec, but the test asserted the disposal
immediately after the console list had drained. On a fast machine the
assertion could therefore run before the timer fired, which made
testRemovingConsoleDisposesZoomFont fail sporadically on the macOS CI
runners.

Poll for both conditions with TestUtil.waitWhile instead.
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   57m 12s ⏱️ - 1m 42s
 4 707 tests ±0   4 685 ✅ ±0   22 💤 ±0  0 ❌ ±0 
12 012 runs  ±0  11 859 ✅ ±0  153 💤 ±0  0 ❌ ±0 

Results for commit 9870922. ± Comparison against base commit 1cc9ae4.

@iloveeclipse
iloveeclipse merged commit 027c580 into eclipse-platform:master Aug 10, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants