Author: yzhishko
Date: 2010-04-16 11:10:03 -0400 (Fri, 16 Apr 2010)
New Revision: 21538
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6197 - fixed
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2010-04-16
15:06:06 UTC (rev 21537)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2010-04-16
15:10:03 UTC (rev 21538)
@@ -123,9 +123,11 @@
Job[] jobs = Job.getJobManager().find(null);
for (Job job : jobs) {
if (job instanceof StructuredRegionProcessor) {
- TestUtil.delay(50);
- isJobsCheck = true;
- break;
+ if (job.getState() == Job.RUNNING) {
+ TestUtil.delay(50);
+ isJobsCheck = true;
+ break;
+ }
}
}
}