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

Aleksandar Vidakovic commented on FINERACT-1250:
------------------------------------------------

[~vorburger] I think I found it... the problem was the Travis command line. 
There are 2 Gradle commands executed; the first is - I think - supposed to 
check that all rules (RAT, Spotless, license headers etc.) are applied and the 
second one was executing the integration test. Now that the integration tests 
are in their own module and are just defined as "normal" tests they get 
actually executed twice, because the first Gradle command also executes all 
unit tests (which includes the integration-tests module). I think I've fixed 
this by adding a "-x test" to the first command, just to keep the change as 
minimal as possible. But I'm sure we don't need these two commands anymore and 
could later merge them into one. Just FYI.

> AuditIntegrationTest > auditShouldbeCreated() FAILED    
> org.opentest4j.AssertionFailedError: More than one audit created ==> 
> expected: <1> but was: <2>
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FINERACT-1250
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1250
>             Project: Apache Fineract
>          Issue Type: Bug
>            Reporter: Michael Vorburger
>            Priority: Major
>
> https://travis-ci.org/github/apache/fineract/builds/740577217 for 
> https://github.com/apache/fineract/pull/1465 for FINERACT-1209 failed with:
> {noformat}AuditIntegrationTest > auditShouldbeCreated() FAILED
>     org.opentest4j.AssertionFailedError: More than one audit created ==> 
> expected: <1> but was: <2>
>         at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
>         at 
> org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
>         at 
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
>         at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:542)
>         at 
> org.apache.fineract.integrationtests.common.AuditHelper.verifyOneAuditOnly(AuditHelper.java:74)
>         at 
> org.apache.fineract.integrationtests.AuditIntegrationTest.auditShouldbeCreated(AuditIntegrationTest.java:82){noformat}
> This seems to be a new problem. I'm not sure if or it could be related to the 
> move of the tests in FINERACT-1209... but perhaps they e.g. run in a 
> different order now, so there is 1 Audit entry more?
> [~aleks] is this something you would like to look into?



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

Reply via email to