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

Commit

Permalink
Add test_setup fn to iml_postgres (#2206)
Browse files Browse the repository at this point in the history
* Add test_setup fn to iml_postgres

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>

* Apply suggestions from code review

Co-authored-by: Will Johnson <wjohnson@whamcloud.com>

Co-authored-by: Will Johnson <wjohnson@whamcloud.com>
  • Loading branch information
jgrund and johnsonw authored Sep 2, 2020
1 parent dd41f0c commit 99f4cd5
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 160 deletions.
Loading

0 comments on commit 99f4cd5

Please sign in to comment.