Skip to content

Commit

Permalink
fix TransactionTemplateTest
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Dec 11, 2023
1 parent 0710c64 commit ef012f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tm/src/test/java/io/seata/tm/api/TransactionTemplateTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.util.LinkedHashSet;
import java.util.Set;

import io.seata.core.context.RootContext;
import io.seata.core.model.GlobalStatus;
import io.seata.core.model.TransactionManager;
import io.seata.tm.TransactionManagerHolder;
Expand Down Expand Up @@ -63,6 +64,7 @@ public void init() throws Exception {
txInfo.setTimeOut(DEFAULT_TIME_OUT);
txInfo.setName(DEFAULT_NAME);
when(transactionalExecutor.getTransactionInfo()).thenReturn(txInfo);
RootContext.unbind();
}

@AfterEach
Expand Down

0 comments on commit ef012f5

Please sign in to comment.