You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test testSingleSelectionAndOneInitialSelectionWithInitialPattern
was intermittently failing with ResourceException during project
deletion in doTearDown() due to background jobs holding project locks.
Changes:
- Add comprehensive UI event processing before/after cleanup
- Wait for additional job families (FAMILY_MANUAL_REFRESH, FAMILY_AUTO_REFRESH)
- Implement retry mechanism with proper NullProgressMonitor (5 retries, 1s delay)
- Preserve existing exception chaining for debugging
- Follow established Eclipse test patterns (ResourceHelper, ResourceActionTest)
This resolves intermittent test failures in CI/CD environments where
decorator and resource refresh jobs interfere with project deletion.
Fixes: ResourceException: Problems encountered while deleting resources
Copy file name to clipboardExpand all lines: tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dialogs/ResourceInitialSelectionTest.java
+60-1Lines changed: 60 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -365,10 +365,24 @@ public void doTearDown() throws Exception {
0 commit comments