Skip to content

How to build test transactions #211

Answered by weiznich
feliwir asked this question in Q&A
Discussion options

You must be logged in to vote

You need to do just call AsyncConnection::begin_test_transaction in your establish_test_connection

The TestCustomizer does nothing else internally.

That written I'm open to accept a PR that adds a similar construct to the pools provided by diesel-async to make this more discoverable.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by feliwir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants