diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java index 41f738123f2..db5699dbf55 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/SmartImportTests.java @@ -151,9 +151,7 @@ private void proceedSmartImportWizard(SmartImportWizard wizard, Consumer okButton.isEnabled(), -1); wizard.performFinish(); - waitForJobs(100, 1000); // give the job framework time to schedule the job wizard.getImportJob().join(); - waitForJobs(100, 5000); // give some time for asynchronous workspace jobs to complete } finally { if (!dialog.getShell().isDisposed()) { dialog.close(); @@ -443,9 +441,7 @@ public void testChangedWorkingSets() throws Exception { processEvents(); processEventsUntil(() -> okButton.isEnabled(), -1); wizard.performFinish(); - waitForJobs(100, 1000); // give the job framework time to schedule the job wizard.getImportJob().join(); - waitForJobs(100, 5000); // give some time for asynchronous workspace jobs to complete assertEquals("WorkingSet2 should be selected", Collections.singleton(workingSet2), page.getSelectedWorkingSets()); assertEquals("Projects were not added to working set", 1, workingSet2.getElements().length);