Is a failing Pax Exam test run twice?

1 view
Skip to first unread message

Steinar Bang

unread,
Dec 11, 2023, 1:06:52 PM12/11/23
to op...@googlegroups.com
(I have a feeling I've asked this before but google doesn't find it)

Is a failing pax exam test run twice?

The reason I'm asking is that I saw this earlier today:
https://gist.github.com/steinarb/640801f57b4bbec3cfa6d2aaefa37b16

First I get an assertion error in line 67 of the test:
https://gist.github.com/steinarb/640801f57b4bbec3cfa6d2aaefa37b16#file-gistfile1-txt-L33

I.e. here:
https://github.com/steinarb/liquibase-karaf-feature/blob/8a0b7aed6a9b1ae351963e2f443d18fc995e17e2/liquibase-integration-test/karaf.liquibase.tests/src/test/java/no/priv/bang/karaf/liquibase/tests/LiquibaseKarafFeatureIntegrationTest.java#L67

Then I get an assertion error in line 60 of the test:
https://gist.github.com/steinarb/640801f57b4bbec3cfa6d2aaefa37b16#file-gistfile1-txt-L107

I.e. here:
https://github.com/steinarb/liquibase-karaf-feature/blob/8a0b7aed6a9b1ae351963e2f443d18fc995e17e2/liquibase-integration-test/karaf.liquibase.tests/src/test/java/no/priv/bang/karaf/liquibase/tests/LiquibaseKarafFeatureIntegrationTest.java#L60

This is consistent with the test being run twice, with two accounts in
place in the database on the second run.

I see the same thing in the karaf.log of the pax exam run:
First "FAILED: testLoadFeature(no.priv.bang.karaf.liquibase.tests.LiquibaseKarafFeatureIntegrationTest) , cause: expected:<2> but was:<1>"
https://gist.github.com/steinarb/941996be35b53cb6f66a4535ba5bb4ae#file-karaf-log-L395

Then: "FAILED: testLoadFeature(no.priv.bang.karaf.liquibase.tests.LiquibaseKarafFeatureIntegrationTest) , cause: expected:<1> but was:<2>"
https://gist.github.com/steinarb/941996be35b53cb6f66a4535ba5bb4ae#file-karaf-log-L432
Reply all
Reply to author
Forward
0 new messages