Created
September 22, 2023 20:04
-
-
Save achanda/75f616d1f5713ae31d35a8e1f4c65683 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╰─$ pytest test/test_auth.py::test_auth_user | |
============================================================================================ test session starts ============================================================================================ | |
platform darwin -- Python 3.9.6, pytest-7.4.2, pluggy-1.3.0 | |
rootdir: /Users/achanda/src/pgbouncer | |
configfile: pyproject.toml | |
plugins: timeout-2.1.0, asyncio-0.21.1, xdist-3.3.1 | |
timeout: 30.0s | |
timeout method: signal | |
timeout func_only: False | |
asyncio: mode=auto | |
collected 1 item | |
test/test_auth.py E [100%] | |
================================================================================================== ERRORS =================================================================================================== | |
_____________________________________________________________________________________ ERROR at setup of test_auth_user ______________________________________________________________________________________ | |
/Users/achanda/Library/Python/3.9/lib/python/site-packages/pytest_asyncio/plugin.py:304: in _asyncgen_fixture_wrapper | |
result = event_loop.run_until_complete(setup()) | |
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False> | |
finalizer = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.finalizer at 0x104c80550> | |
fixture = <function bouncer at 0x104758ca0> | |
fixturedef = <FixtureDef argname='bouncer' scope='function' baseid='test'> | |
func = <function bouncer at 0x104758ca0> | |
gen_obj = <async_generator object bouncer at 0x104c803a0> | |
kwargs = {'pg': <test.utils.Postgres object at 0x104b96f10>, 'tmp_path': PosixPath('/private/var/folders/4c/v1sv5xp10612jwznsjmtk32h0000gp/T/pytest-of-achanda/pytest-0/test_auth_user0')} | |
request = <SubRequest 'bouncer' for <Function test_auth_user>> | |
setup = <function _wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup at 0x104c804c0> | |
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py:642: in run_until_complete | |
return future.result() | |
future = <Task finished name='Task-1' coro=<_wrap_asyncgen_fixture.<locals>._asyncgen_fixture_wrapper.<locals>.setup() done, de...nection is bad: No such file or directory\n\tIs the server running locally and accepting connections on that socket?')> | |
new_task = True | |
self = <_UnixSelectorEventLoop running=False closed=False debug=False> | |
/Users/achanda/Library/Python/3.9/lib/python/site-packages/pytest_asyncio/plugin.py:286: in setup | |
res = await gen_obj.__anext__() | |
gen_obj = <async_generator object bouncer at 0x104c803a0> | |
/Users/achanda/src/pgbouncer/test/conftest.py:114: in bouncer | |
await bouncer.start() | |
bouncer = <test.utils.Bouncer object at 0x104b918b0> | |
pg = <test.utils.Postgres object at 0x104b96f10> | |
tmp_path = PosixPath('/private/var/folders/4c/v1sv5xp10612jwznsjmtk32h0000gp/T/pytest-of-achanda/pytest-0/test_auth_user0') | |
/Users/achanda/src/pgbouncer/test/utils.py:708: in start | |
await self.wait_until_running() | |
self = <test.utils.Bouncer object at 0x104b918b0> | |
/Users/achanda/src/pgbouncer/test/utils.py:714: in wait_until_running | |
await self.aadmin("show version") | |
self = <test.utils.Bouncer object at 0x104b918b0> | |
tries = 51 | |
/Users/achanda/src/pgbouncer/test/utils.py:282: in asql_coroutine | |
async with self.acur(**kwargs) as cur: | |
kwargs = {} | |
params = None | |
query = 'show version' | |
self = <test.utils.QueryRunner object at 0x104baa1c0> | |
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/contextlib.py:175: in __aenter__ | |
return await self.gen.__anext__() | |
self = <contextlib._AsyncGeneratorContextManager object at 0x104baab20> | |
/Users/achanda/src/pgbouncer/test/utils.py:247: in acur | |
async with await self.aconn(**kwargs) as conn: | |
kwargs = {} | |
self = <test.utils.QueryRunner object at 0x104baa1c0> | |
/Users/achanda/Library/Python/3.9/lib/python/site-packages/psycopg/connection_async.py:129: in connect | |
raise ex.with_traceback(None) | |
E psycopg.OperationalError: connection is bad: No such file or directory | |
E Is the server running locally and accepting connections on that socket? | |
autocommit = True | |
cls = <class 'psycopg.AsyncConnection'> | |
conninfo = "host=/tmp port=10202 dbname=pgbouncer user=pgbouncer connect_timeout=3 client_encoding=UTF8 hostaddr=''" | |
context = None | |
cursor_factory = None | |
kwargs = {'client_encoding': 'UTF8', 'connect_timeout': 3, 'dbname': 'pgbouncer', 'host': '/tmp', ...} | |
params = {'client_encoding': 'UTF8', 'connect_timeout': 3, 'dbname': 'pgbouncer', 'host': '/tmp', ...} | |
prepare_threshold = 5 | |
row_factory = None | |
------------------------------------------------------------------------------------------- Captured stdout setup ------------------------------------------------------------------------------------------- | |
waiting for server to start.... done | |
server started | |
server signaled | |
BOUNCER_LOG /private/var/folders/4c/v1sv5xp10612jwznsjmtk32h0000gp/T/pytest-of-achanda/pytest-0/test_auth_user0/bouncer | |
------------------------------------------------------------------------------------------- Captured stderr setup ------------------------------------------------------------------------------------------- | |
+ initdb -A trust --nosync --username postgres --pgdata /private/var/folders/4c/v1sv5xp10612jwznsjmtk32h0000gp/T/pytest-of-achanda/pytest-0/pgdata | |
+ pg_ctl -w --pgdata /private/var/folders/4c/v1sv5xp10612jwznsjmtk32h0000gp/T/pytest-of-achanda/pytest-0/pgdata -o "-p 10201" -l /private/var/folders/4c/v1sv5xp10612jwznsjmtk32h0000gp/T/pytest-of-achanda/pytest-0/pgdata/pg.log start | |
+ pg_ctl -w --pgdata /private/var/folders/4c/v1sv5xp10612jwznsjmtk32h0000gp/T/pytest-of-achanda/pytest-0/pgdata reload | |
========================================================================================== short test summary info ========================================================================================== | |
ERROR test/test_auth.py::test_auth_user - psycopg.OperationalError: connection is bad: No such file or directory | |
============================================================================================= 1 error in 9.59s ======================================================================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment