Skip to content

Commit

Permalink
Test not closing session in server init
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Verga <[email protected]>
  • Loading branch information
mattiaverga committed Mar 24, 2024
1 parent 30ffe50 commit f13eacc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bodhi-server/bodhi/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,6 @@ def main(global_config, testing=None, session=None, **settings):
# the return value.
generic._generate_home_page_stats()

# Let's close out the db session we used to warm the caches.
Session.remove()

log.info('Bodhi ready and at your service!')
app = config.make_wsgi_app()
return app

0 comments on commit f13eacc

Please sign in to comment.