Don't cleanup integration tests twice.

This commit is contained in:
John Chilton
2019-08-15 13:31:06 -04:00
parent 2a20de3848
commit f82e5e9186
2 changed files with 7 additions and 4 deletions
+5 -3
View File
@@ -51,9 +51,11 @@ def app_factory(global_conf, load_app_kwds={}, **kwargs):
except Exception:
traceback.print_exc()
sys.exit(1)
# Call app's shutdown method when the interpeter exits, this cleanly stops
# the various Galaxy application daemon threads
app.application_stack.register_postfork_function(atexit.register, app.shutdown)
if kwargs.get('register_shutdown_at_exit', True):
# Call app's shutdown method when the interpeter exits, this cleanly stops
# the various Galaxy application daemon threads
app.application_stack.register_postfork_function(atexit.register, app.shutdown)
# Create the universe WSGI application
webapp = GalaxyWebApplication(app, session_cookie='galaxysession', name='galaxy')
+2 -1
View File
@@ -776,7 +776,8 @@ def launch_server(app, webapp_factory, kwargs, prefix=DEFAULT_CONFIG_PREFIX, con
kwargs['global_conf'],
app=app,
use_translogger=False,
static_enabled=True
static_enabled=True,
register_shutdown_at_exit=False
)
server, port = serve_webapp(
webapp,