I figure out what happened, when I added KarafTestSupport as a base class to my 
existing test class, I forgot to remove option 
KarafDistributionOption.karafDistributionConfiguration from the child class, so 
it looks like it was launching two Karaf’s instances.  When I removed this 
option from the child class, the problem went away, i.e., the test runs only 
once, as expected. 


Thanks,
Alex soto




> On Feb 13, 2020, at 3:42 PM, Alex Soto <[email protected]> wrote:
> 
> Thanks JB,  do you know the exact option name or how to disable this?  
> 
> Best regards,
> Alex soto
> 
> 
> 
> 
>> On Feb 13, 2020, at 3:37 PM, Jean-Baptiste Onofré <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> It?s due to the restart in case of failure (it?s part of the Karaf test 
>> support). 
>> 
>> Regards 
>> JB
>> 
>> Le jeu. 13 f?vr. 2020 ? 21:26, Alex Soto <[email protected] 
>> <mailto:[email protected]>> a ?crit :
>> Hello,
>> 
>> I am running Pax-exam 4.13.1. If  I extend my test class from 
>> KarafTestSupport class (from 
>> 
>>      <dependency>
>>             <groupId>org.apache.karaf.itests</groupId>
>>             <artifactId>common</artifactId>
>>             <version>4.2.8</version>
>>         </dependency>
>> 
>> 
>> ) then the test are being run twice by Pax-Exam.  Any idea?  
>> 
>> Best regards,
>> Alex soto
>> 
>> 
>> 
>> 
> 

Reply via email to