[ 
https://issues.apache.org/jira/browse/FINERACT-855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17123355#comment-17123355
 ] 

Petri Tuomola commented on FINERACT-855:
----------------------------------------

Quick look at the code seems to suggest this is some sort of an interesting 
"rounding error" issue. The test calculates the principal + 1 month of interest 
to be x.500 which rounds down, whereas the API call returns x.504 which rounds 
up. Hence the failure in the test. 

Now just need to work out what is the difference in how this is calculated in 
API vs test, and why this has suddenly started failing...

> RecurringDepositTest
> --------------------
>
>                 Key: FINERACT-855
>                 URL: https://issues.apache.org/jira/browse/FINERACT-855
>             Project: Apache Fineract
>          Issue Type: Sub-task
>            Reporter: Michael Vorburger
>            Priority: Major
>
> while attempting to understand FINERACT-852, and locally pulling and running 
> https://github.com/apache/fineract/pull/719, it failed for me, and we have a 
> note about a similar failure in https://github.com/apache/fineract/pull/642, 
> this may be  another flaky one?
> {code}> Task :integrationTest                                                 
>                                                                               
>                                                                               
>                                                                               
>                                                                               
>                                           
> org.apache.fineract.integrationtests.RecurringDepositTest > 
> testRecurringDepositAccountWithClosureTypeTransferToSavings_WITH_HOLD_TAX 
> FAILED                                                                        
>      java.lang.AssertionError at RecurringDepositTest.java:836{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to