Commit 444e263
committed
Cancel Quick Access compute on dispose to stop orphaned jobs
doDispose() left computeProposalsJob running, so a closed dialog kept
querying providers and lingered in COMPUTE_JOB_FAMILY. The setUp warmup
made this visible: it set "t", waited only for the first results, then
closed the dialog while the lazy providers were still cold-initializing
on the worker. That orphaned job stayed in the family and, on a loaded
macOS runner, could outlive a test's 30 s waitForQuickAccessResults wait,
which waits for the whole family to drain (issue #4009,
testPreviousChoicesAvailableForExtension).
Cancel the compute job in doDispose so a closed dialog stops computing
and leaves the family promptly. Make the warmup wait for results and for
the compute job to drain, so the providers' slow first query finishes in
setUp rather than leaking into a test's timed wait.1 parent f9b887f commit 444e263
2 files changed
Lines changed: 11 additions & 1 deletion
File tree
- bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/quickaccess
- tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/quickaccess
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
647 | 653 | | |
648 | 654 | | |
649 | 655 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
0 commit comments