Hi Jun,
Sorry for the late reply. Your code has the following part:
DB localTx { implicit session =>
The `implicit session` is another session. Thus, the auto-rollback
feature doesn't affect the session. You can test the logic by
extracting the internal logic to another method which doesn't have a
local transaction inside.
Best,
Kaz
On Tue, Oct 23, 2018 at 11:50 PM Andrew T <
scy...@gmail.com> wrote:
>
> Would the AutoRollback trait work for you?
>
>
http://scalikejdbc.org/documentation/testing.html
> --
> You received this message because you are subscribed to the Google Groups "ScalikeJDBC Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
scalikejdbc-users...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.