From a2a033fa90e2994f67c619a6d8294bd14bfff7a9 Mon Sep 17 00:00:00 2001 From: Eragon Date: Fri, 3 Jan 2025 15:48:35 +0100 Subject: [PATCH] ci: Disable connection pooling for e2e tests --- tools/integration_tests/tokenserver/test_support.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/integration_tests/tokenserver/test_support.py b/tools/integration_tests/tokenserver/test_support.py index d5265517ea..c459466d83 100644 --- a/tools/integration_tests/tokenserver/test_support.py +++ b/tools/integration_tests/tokenserver/test_support.py @@ -10,6 +10,7 @@ import urllib.parse as urlparse from sqlalchemy import create_engine +from sqlalchemy.pool import NullPool from tokenlib.utils import decode_token_bytes from webtest import TestApp @@ -251,7 +252,8 @@ def _execute_sql(self, query, args): return cursor def _db_connect(self): - engine = create_engine(os.environ['SYNC_TOKENSERVER__DATABASE_URL']) + time.sleep(2) # FIXME: Don't waste time like that + engine = create_engine(os.environ['SYNC_TOKENSERVER__DATABASE_URL'], poolclass=NullPool) self.database = engine. \ execution_options(isolation_level='AUTOCOMMIT'). \ connect()