This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git


The following commit(s) were added to refs/heads/master by this push:
     new 9dd6a63  Fixed the TransactionAspectTest failure on Mac OSX
9dd6a63 is described below

commit 9dd6a6356e4b76d657976fbc2fd7d78d32cbe3b9
Author: Willem Jiang <jiangni...@huawei.com>
AuthorDate: Sun Jan 14 00:35:30 2018 +0800

    Fixed the TransactionAspectTest failure on Mac OSX
---
 .../servicecomb/saga/omega/transaction/TransactionAspectTest.java     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/omega/omega-transaction/src/test/java/org/apache/servicecomb/saga/omega/transaction/TransactionAspectTest.java
 
b/omega/omega-transaction/src/test/java/org/apache/servicecomb/saga/omega/transaction/TransactionAspectTest.java
index 2ce34b8..a937242 100644
--- 
a/omega/omega-transaction/src/test/java/org/apache/servicecomb/saga/omega/transaction/TransactionAspectTest.java
+++ 
b/omega/omega-transaction/src/test/java/org/apache/servicecomb/saga/omega/transaction/TransactionAspectTest.java
@@ -129,6 +129,10 @@ public class TransactionAspectTest {
 
     CompletableFuture.runAsync(() -> {
       try {
+        // need to setup the thread local for it
+        omegaContext.setGlobalTxId(globalTxId);
+        omegaContext.setLocalTxId(localTxId);
+
         aspect.advise(joinPoint, compensable);
       } catch (Throwable throwable) {
         fail(throwable.getMessage());

-- 
To stop receiving notification emails like this one, please contact
['"commits@servicecomb.apache.org" <commits@servicecomb.apache.org>'].

Reply via email to