Jean-Baptiste Onofré created KARAF-5875:
-------------------------------------------

             Summary: JpaExampleTest is flacky
                 Key: KARAF-5875
                 URL: https://issues.apache.org/jira/browse/KARAF-5875
             Project: Karaf
          Issue Type: Test
          Components: karaf-test
    Affects Versions: 4.2.1
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: 4.2.2


{{JpaExampleTest}} sometimes fails with:

{code}
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 40.928 
s <<< FAILURE! - in org.apache.karaf.itests.examples.JpaExampleTest
[ERROR] test(org.apache.karaf.itests.examples.JpaExampleTest)  Time elapsed: 
35.118 s  <<< FAILURE!
java.lang.AssertionError:
Should contain 'AF520' but was : ID │ Flight │ Customer
───┼────────┼─────────

        at 
org.apache.karaf.itests.examples.JpaExampleTest.testCommand(JpaExampleTest.java:74)
        at 
org.apache.karaf.itests.examples.JpaExampleTest.test(JpaExampleTest.java:49)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures: 
[ERROR]   
JpaExampleTest.test:49->testCommand:74->KarafTestSupport.assertContains:652 
Should contain 'AF520' but was : ID │ Flight │ Customer
───┼────────┼─────────

[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
{code}

That's probably a race condition in the commands chain. I will fix that.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to