[
https://issues.apache.org/jira/browse/KARAF-5875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16752328#comment-16752328
]
Jean-Baptiste Onofré commented on KARAF-5875:
---------------------------------------------
It seems more stable now. I keep this jira open to check it after several
builds.
> JpaExampleTest is flacky
> ------------------------
>
> Key: KARAF-5875
> URL: https://issues.apache.org/jira/browse/KARAF-5875
> Project: Karaf
> Issue Type: Test
> Components: karaf
> Affects Versions: 4.2.1
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Labels: jenkins, test
> Fix For: 4.2.3
>
>
> {{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)