diff --git a/docker-compose.yml b/docker-compose.yml index 866f59f..4982022 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -98,8 +98,17 @@ services: PG_PASSWORD: prosody PG_DB: prosody MOCK_URL: http://mocks:8080 # for side-effect assertions + # The tester reaches prosody directly by service name (http://prosody:5280), + # so aiohttp sends Host: prosody — which Prosody rejects as an unknown + # vhost (404 "Unknown host"). Send the real XMPP domain so HTTP routing + # lands on the example.com VirtualHost that serves mod_http_rest /rest. + REST_HOST_HEADER: example.com volumes: - ./tests:/tests + # Surface the repo config/ dir so static tests (test_04_infra + # healthcheck source checks) can resolve ../config/healthcheck.sh + # from inside the container. + - ./config:/config:ro volumes: pgdata: diff --git a/tests/test_11_smokes.py b/tests/test_11_smokes.py index be0927c..d41fca4 100644 --- a/tests/test_11_smokes.py +++ b/tests/test_11_smokes.py @@ -163,7 +163,7 @@ class TestAdminTelnetNonLoopback: reader, writer = await asyncio.wait_for( asyncio.open_connection(host, port), timeout=5 ) - data = await asyncio.wait_for(reader.read(256), timeout=5) + data = await asyncio.wait_for(reader.read(1024), timeout=5) writer.close() await writer.wait_closed() except (OSError, asyncio.TimeoutError) as e: