[ 
https://issues.apache.org/jira/browse/TOMEE-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Zowalla resolved TOMEE-3786.
------------------------------------
    Fix Version/s: 8.0.9
       Resolution: Fixed

> Fix test failures in org.apache.tomee:cdi-tomee
> -----------------------------------------------
>
>                 Key: TOMEE-3786
>                 URL: https://issues.apache.org/jira/browse/TOMEE-3786
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 8.0.7
>            Reporter: Richard Zowalla
>            Priority: Major
>             Fix For: 8.0.9
>
>
> The TCK work introduced some regression regarding two test cases located in 
> {{org.apache.tomee:cdi-tomee }}
> |!https://ci-builds.apache.org/static/c4d26c26/images/16x16/document_add.png! 
>  
> [org.jboss.cdi.tck.tests.context.session.async.SessionContextAsyncListenerTest.testSessionContextActiveOnError|https://ci-builds.apache.org/job/Tomee/job/master-build-full/lastBuild/org.apache.tomee$cdi-tomee/testReport/org.jboss.cdi.tck.tests.context.session.async/SessionContextAsyncListenerTest/testSessionContextActiveOnError/]|89
>  ms|83|
> |!https://ci-builds.apache.org/static/c4d26c26/images/16x16/document_add.png! 
>  
> [org.jboss.cdi.tck.tests.context.session.async.SessionContextAsyncListenerTest.testSessionContextActiveOnStartAsync|https://ci-builds.apache.org/job/Tomee/job/master-build-full/lastBuild/org.apache.tomee$cdi-tomee/testReport/org.jboss.cdi.tck.tests.context.session.async/SessionContextAsyncListenerTest/testSessionContextActiveOnStartAsync/]|0.11
>  Sekunden|83|
> A {{git bisect}} session revealed, that 
> [https://github.com/apache/tomee/commit/057ed7adade08d8c2132ab1c8bc6fa367c93e946]
>  seems to cause this issue. 
> To debug it :
> 1. Conduct a quick build without tests ("{{-Pquick -DskipTests}}
> {{-Dsurefire.useFile=false -DdisableXmlReport=true -DuniqueVersion=false}}
> {{-ff -Dassemble -DfailIfNoTests=false clean install"}})
> 2. In {{tck/cdi-tomee/pom.xml}} in line 34 change it
> to {{<suite.name>failing</suite.name>}}
> 3. In {{tck/cdi-tomee/src/test/resources/failing.xml}} update the class
> name to
> "{{org.jboss.cdi.tck.tests.context.session.async.SessionContextAsyncListe}}
> {{nerTest}}" (only execute the failing test class)
> 4. In{{ tck/cdi-tomee/src/test/resources/arquillian.xml}} add ??<property??
> ??name="debug">true</property>??
> 5. In{{ tck/cdi-tomee/}} run{{ "mvn clean test"}} -> should be possible to
> attach a debugger
>  
> References to mailing list discussions: 
> https://mail-archives.apache.org/mod_mbox/tomee-dev/202107.mbox/%3C7816203a755460dd69fe6ed8f11e097396e84f66.camel%40hs-heilbronn.de%3E



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to