Skip to content

Commit

Permalink
try fixing unnecessary timeout on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeec committed Jan 27, 2023
1 parent 2260ee6 commit 5f0588b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
Expand All @@ -40,6 +41,7 @@

import com.devonfw.cobigen.eclipse.common.constants.external.ResourceConstants;
import com.devonfw.cobigen.eclipse.test.common.swtbot.AllJobsAreFinished;
import com.devonfw.cobigen.eclipse.test.common.swtbot.HasBeenBuilt;
import com.devonfw.cobigen.eclipse.test.common.utils.swtbot.SwtBotProjectActions;

/**
Expand Down Expand Up @@ -103,7 +105,12 @@ public static void importExistingGeneralProject(SWTWorkbenchBot bot, String proj
bot.waitUntil(shellCloses(popup));
ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
ResourcesPlugin.getWorkspace().build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
bot.waitUntil(new AllJobsAreFinished());
for (IProject p : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
IJavaProject jp = JavaCore.create(p);
if (jp != null) {
bot.waitUntil(new HasBeenBuilt(jp));
}
}
}

/**
Expand Down

0 comments on commit 5f0588b

Please sign in to comment.