Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
DelinquencyBucketsIntegrationTest.testLoanClassificationStepAsPartOfCOB test is running for 10 mins.
This test need to be refactored to decrease the execution time drastically.
I believe the major issue here is the test is executing the Loan COB for 52 times (50 times for consecutive days):
{{// Move the Business date to get older the loan and to have an overdue loan
LocalDate lastLoanCOBBusinessDate = businessDate;}}
businessDate = businessDate.plusDays(50);
schedulerJobHelper.fastForwardTime(lastLoanCOBBusinessDate, businessDate, jobName, responseSpec);
log.info("Current date {}", businessDate);
BusinessDateHelper.updateBusinessDate(requestSpec, responseSpec, BusinessDateType.BUSINESS_DATE, businessDate);
// Run Second time the Job
{{schedulerJobHelper.executeAndAwaitJob(jobName); }}
Can we change the delinquency ranges and the number of times we really need to execute the COB job?
Also is there any other logic which slowing this test down?
Acceptance criteria
- This test should be run under 30 seconds, but maximum 1 minutes (if the complexity and the executed steps really requires)
Attachments
Issue Links
- is a child of
-
FINERACT-1874 Release Apache Fineract 1.9.0
- In Progress
- links to