Author: dgolovin
Date: 2008-10-21 15:08:09 -0400 (Tue, 21 Oct 2008)
New Revision: 11058
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamBigProjectTest.java
Log:
fix bulid hanging
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamBigProjectTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamBigProjectTest.java 2008-10-21
16:21:10 UTC (rev 11057)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamBigProjectTest.java 2008-10-21
19:08:09 UTC (rev 11058)
@@ -155,17 +155,17 @@
sb.append(s.substring(j));
IFile file = webContent.getFile("long.xhtml");
try {
- boolean save = ResourcesUtils.setBuildAutomatically(false);
+// boolean save = ResourcesUtils.setBuildAutomatically(false);
file.create(new ByteArrayInputStream(sb.toString().getBytes()), true, new
NullProgressMonitor());
long time = System.currentTimeMillis();
- project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new
NullProgressMonitor());
-
+// project.build(IncrementalProjectBuilder.INCREMENTAL_BUILD, new
NullProgressMonitor());
+ JobUtils.waitForIdle();
long dt = System.currentTimeMillis() - time;
System.out.println("validated in " + dt);
- ResourcesUtils.setBuildAutomatically(save);
+// ResourcesUtils.setBuildAutomatically(save);
- assertTrue("Validator takes more than 5s (" + (dt/1000d) + ") for
validating generated long.xhtml", dt < 5000);
+ assertTrue("Validator takes more than 5s (" + ((dt-500)/1000d) + ") for
validating generated long.xhtml", dt < 5000);
} catch (CoreException e) {
JUnitUtils.fail("", e);
}
Show replies by date