Skip to content

Test connection reuse after non-2xx responses#99

Merged
dkropachev merged 1 commit into
mainfrom
dkropachev/driver-745-non200-connection-reuse-tests
Jun 30, 2026
Merged

Test connection reuse after non-2xx responses#99
dkropachev merged 1 commit into
mainfrom
dkropachev/driver-745-non200-connection-reuse-tests

Conversation

@dkropachev

Copy link
Copy Markdown
Collaborator

Fixes #98

Adds repeated non-2xx keep-alive connection reuse coverage for:

  • Alternator /localnodes discovery responses through the async aiohttp node fetcher
  • DynamoDB ListTables responses through the registered boto3/botocore request path

Both tests send multiple non-2xx responses before a success and assert all requests reuse the same accepted TCP connection.

Tests:

  • python -m pytest tests/unit/test_http.py tests/unit/test_request_lifecycle.py
  • python -m ruff check tests/unit/test_http.py tests/unit/test_request_lifecycle.py
  • python -m mypy tests/unit/test_http.py tests/unit/test_request_lifecycle.py

@dkropachev
dkropachev force-pushed the dkropachev/driver-745-non200-connection-reuse-tests branch from 143a94a to bb2222b Compare June 30, 2026 03:36
@dkropachev
dkropachev merged commit f489408 into main Jun 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make sure that pool connections survive non 2xx responses

1 participant