Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Add test_setup fn to iml_postgres #2206

Merged
merged 2 commits into from
Sep 2, 2020
Merged

Add test_setup fn to iml_postgres #2206

merged 2 commits into from
Sep 2, 2020

Conversation

jgrund
Copy link
Member

@jgrund jgrund commented Sep 1, 2020

Add a test_setup fn to iml_postgres that will run hand out a single
pool connection and run it within a transaction. When the connection is
closed the transaction is rolled back so it is safe to call in parllel
and will not pollute db testing.

Signed-off-by: Joe Grund jgrund@whamcloud.io


This change is Reviewable

Add a test_setup fn to iml_postgres that will run hand out a single
pool connection and run it within a transaction. When the connection is
closed the transaction is rolled back so it is safe to call in parllel
and will not pollute db testing.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
@jgrund jgrund self-assigned this Sep 1, 2020
@jgrund jgrund marked this pull request as ready for review September 1, 2020 19:51
@jgrund jgrund requested a review from a team September 1, 2020 19:51
johnsonw
johnsonw previously approved these changes Sep 1, 2020
iml-postgres/src/lib.rs Outdated Show resolved Hide resolved
iml-postgres/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Will Johnson <wjohnson@whamcloud.com>
@jgrund jgrund merged commit 99f4cd5 into master Sep 2, 2020
@jgrund jgrund deleted the db-test-transactions branch September 2, 2020 11:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants