Commit d77df82
committed
Fix ResourceInitialSelectionTest teardown failure
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 resources1 parent 1848058 commit d77df82
File tree
1 file changed
+60
-1
lines changed- tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dialogs
1 file changed
+60
-1
lines changedLines changed: 60 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
368 | 371 | | |
| 372 | + | |
369 | 373 | | |
370 | 374 | | |
371 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
372 | 386 | | |
373 | 387 | | |
374 | 388 | | |
| |||
381 | 395 | | |
382 | 396 | | |
383 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
384 | 443 | | |
0 commit comments