[ 
https://issues.apache.org/jira/browse/SCB-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476790#comment-16476790
 ] 

Yang Bo commented on SCB-584:
-----------------------------

The test uses SpringExtensionFactory which have a static member to store the 
contexts. When the tests for provider and consumer are run in parallel, they 
will get the same omegaContext instead of the intended saparate ones.

It's better to change the way how the filters get the omegaContext, perhaps use 
spring to inject?

> DubboConsumerFilterTest fails on linux
> --------------------------------------
>
>                 Key: SCB-584
>                 URL: https://issues.apache.org/jira/browse/SCB-584
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Saga
>    Affects Versions: saga-0.2.0
>         Environment: ybo@yangbo:~/repos/incubator-servicecomb-saga$ mvn -v
> Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 
> 2017-10-18T15:58:13+08:00)
> Maven home: /opt/maven
> Java version: 1.8.0_151, vendor: Oracle Corporation
> Java home: /opt/jdk1.8.0_151/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.4.0-104-generic", arch: "amd64", family: "unix"
>            Reporter: Yang Bo
>            Priority: Minor
>             Fix For: saga-0.2.0
>
>
> The DubboConsumerFilterTest fails with the following error:
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running SagaDubboProviderFilterTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.518 sec - 
> in SagaDubboProviderFilterTest
> Running SagaDubboConsumerFilterTest
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec <<< 
> FAILURE! - in SagaDubboConsumerFilterTest
> interceptTransactionIdInHeaderIfContextPresent(SagaDubboConsumerFilterTest) 
> Time elapsed: 0.005 sec <<< FAILURE!
> java.lang.AssertionError:
> Expected: is "cf4a9f4a-b9e5-43f5-a7d9-837fa96ee4c0"
>  but: was "3ef495de-2f2a-4afa-b991-237cd8de7e1e"
>  at 
> SagaDubboConsumerFilterTest.interceptTransactionIdInHeaderIfContextPresent(SagaDubboConsumerFilterTest.java:82)
>  
>  
>  



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

Reply via email to