Skip to content

Commit

Permalink
ci: Disable connection pooling for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eragonfr committed Jan 3, 2025
1 parent ab6ee22 commit ed0e727
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/integration_tests/tokenserver/test_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ed0e727

Please sign in to comment.