Yemdjih Kaze Nasser created FINERACT-1097:
---------------------------------------------
Summary: SchedularJob IT tests
failing(org.awaitility.core.ConditionTimeoutException)
Key: FINERACT-1097
URL: https://issues.apache.org/jira/browse/FINERACT-1097
Project: Apache Fineract
Issue Type: Improvement
Affects Versions: 1.4.0
Reporter: Yemdjih Kaze Nasser
While looking into
[FINERACT-1069|https://issues.apache.org/jira/browse/FINERACT-1069], I stumbled
upon some schedular IT test errors which I faced when working on migrating the
JPA so originally I thought something was wrong with some of the changes I
made. Seeing thesame error with OpenJPA on branch develop tells me this
deserves more attention. Here are the logs:
{code:java}
SchedulerJobsTest > testTriggeringManualExecutionOfAllSchedulerJobs() FAILED
org.awaitility.core.ConditionTimeoutException: Lambda expression in
org.apache.fineract.integrationtests.common.SchedulerJobHelper: expected the
predicate to ret
urn <true> but it returned <false> for input of <{version=4,
jobRunStartTime=2020-07-26T16:52:28Z, jobRunEndTime=2020-07-26T16:52:47Z,
status=success, triggerType=ap
plication}> within 30 seconds.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
at
org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:601)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:618)
at
org.apache.fineract.integrationtests.common.SchedulerJobHelper.executeAndAwaitJob(SchedulerJobHelper.java:165)
at
org.apache.fineract.integrationtests.SchedulerJobsTest.testTriggeringManualExecutionOfAllSchedulerJobs(SchedulerJobsTest.java:132)
Caused by:
java.util.concurrent.TimeoutException
at
java.base/java.util.concurrent.FutureTask.get(FutureTask.java:204)
at
org.awaitility.core.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:101)
at
org.awaitility.core.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:81)
at
org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:101)
... 6 more
SchedulerJobsTestResults > testUpdateAccountingRunningBalancesJobOutcome()
FAILED
org.awaitility.core.ConditionTimeoutException: Lambda expression in
org.apache.fineract.integrationtests.common.SchedulerJobHelper: expected the
predicate to ret
urn <true> but it returned <false> for input of <{version=1,
jobRunStartTime=2020-07-16T18:31:00Z, jobRunEndTime=2020-07-16T18:31:00Z,
status=success, triggerType=cr
on}> within 30 seconds.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
at
org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:601)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:618)
at
org.apache.fineract.integrationtests.common.SchedulerJobHelper.executeAndAwaitJob(SchedulerJobHelper.java:165)
at
org.apache.fineract.integrationtests.SchedulerJobsTestResults.testUpdateAccountingRunningBalancesJobOutcome(SchedulerJobsTestResults.java:423)
SchedulerJobsTestResults > testInterestPostingForSavingsJobOutcome() FAILED
org.awaitility.core.ConditionTimeoutException: Lambda expression in
org.apache.fineract.integrationtests.common.SchedulerJobHelper: expected the
predicate to ret
urn <true> but it returned <false> for input of <{version=5,
jobRunStartTime=2020-07-26T18:11:18Z, jobRunEndTime=2020-07-26T18:12:54Z,
status=success, triggerType=ap
plication}> within 30 seconds.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
at
org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:601)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:618)
at
org.apache.fineract.integrationtests.common.SchedulerJobHelper.executeAndAwaitJob(SchedulerJobHelper.java:165)
at
org.apache.fineract.integrationtests.SchedulerJobsTestResults.testInterestPostingForSavingsJobOutcome(SchedulerJobsTestResults.java:194)
SchedulerJobsTestResults > testInterestTransferForSavings() FAILED
org.awaitility.core.ConditionTimeoutException: Lambda expression in
org.apache.fineract.integrationtests.common.SchedulerJobHelper: expected the
predicate to ret
urn <true> but it returned <false> for input of <{version=2,
jobRunStartTime=2020-07-26T16:52:51Z, jobRunEndTime=2020-07-26T16:52:51Z,
status=success, triggerType=ap
plication}> within 30 seconds.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
at
org.awaitility.core.AbstractHamcrestCondition.await(AbstractHamcrestCondition.java:86)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:601)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:618)
at
org.apache.fineract.integrationtests.common.SchedulerJobHelper.executeAndAwaitJob(SchedulerJobHelper.java:165)
at
org.apache.fineract.integrationtests.SchedulerJobsTestResults.testInterestTransferForSavings(SchedulerJobsTestResults.java:896)
{code}
FYI: [~vorburger] [~ptuomola]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)