Skip to content

Commit 92864c8

Browse files
papegaaijbartoszmajsak
authored andcommitted
Make sure @after runs within transaction bounds
Since 1.1.7, @after is called as part of a TestLifecycleEvent rather then directly from Arquillian. To make sure @after remains within the transaction bounds, TransactionHandler must first proceed and then end the transaction.
1 parent 36434d7 commit 92864c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

impl-base/src/main/java/org/jboss/arquillian/transaction/impl/lifecycle/TransactionHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ public void endTransactionAfterTest(@Observes(precedence = -1) EventContext<Afte
9999
{
100100
try
101101
{
102-
endTransaction(afterTestContext.getEvent());
102+
afterTestContext.proceed();
103103
}
104104
finally
105105
{
106-
afterTestContext.proceed();
106+
endTransaction(afterTestContext.getEvent());
107107
}
108108
}
109109

0 commit comments

Comments
 (0)