File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -109,15 +109,6 @@ impl TestApp {
109109 Self :: init ( ) . with_git_index ( ) . with_job_runner ( )
110110 }
111111
112- /// Obtain the database connection and pass it to the closure
113- ///
114- /// Within each test, the connection pool only has 1 connection so it is necessary to drop the
115- /// connection before making any API calls. Once the closure returns, the connection is
116- /// dropped, ensuring it is returned to the pool and available for any future API calls.
117- pub fn db < T , F : FnOnce ( & mut PgConnection ) -> T > ( & self , f : F ) -> T {
118- f ( & mut self . db_conn ( ) )
119- }
120-
121112 /// Obtain a database connection.
122113 pub fn db_conn ( & self ) -> PooledConnection < ConnectionManager < PgConnection > > {
123114 self . 0 . test_database . connect ( )
You can’t perform that action at this time.
0 commit comments