Author: rob.stryker(a)jboss.com
Date: 2011-03-30 13:37:34 -0400 (Wed, 30 Mar 2011)
New Revision: 30157
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/src/org/jboss/ide/eclipse/as/archives/integration/test/BuildDeployTest.java
Log:
JBIDE-8648 unit test failure
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/src/org/jboss/ide/eclipse/as/archives/integration/test/BuildDeployTest.java
===================================================================
---
trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/src/org/jboss/ide/eclipse/as/archives/integration/test/BuildDeployTest.java 2011-03-30
15:59:55 UTC (rev 30156)
+++
trunk/as/tests/org.jboss.ide.eclipse.as.archives.integration.test/src/org/jboss/ide/eclipse/as/archives/integration/test/BuildDeployTest.java 2011-03-30
17:37:34 UTC (rev 30157)
@@ -100,7 +100,7 @@
try {
Thread.sleep(3000);
} catch( InterruptedException ie) {}
- JobUtils.waitForIdle();
+ waitForIdle();
setContents(count);
callBuild(); // just to speed the test
@@ -277,7 +277,7 @@
protected void buildArchive() {
Job j = new BuildAction().run(rootArchive);
- JobUtils.waitForIdle();
+ waitForIdle();
assertTrue(j.getResult().isOK());
}
@@ -291,7 +291,7 @@
try {
Thread.sleep(2000);
} catch( InterruptedException ie) {}
- JobUtils.waitForIdle();
+ waitForIdle();
}
protected void assertContents(InputStream is, int val) throws IOException {
@@ -316,6 +316,10 @@
protected void callBuild() throws CoreException {
ResourcesPlugin.getWorkspace().build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new
NullProgressMonitor());
- JobUtils.waitForIdle();
+ waitForIdle();
}
+
+ private void waitForIdle() {
+ JobUtils.waitForIdle(2500);
+ }
}
Show replies by date