• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41831079473 / 5
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 12:41PM UTC
Files 24
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 12:38PM UTC coverage: 97.532%. Remained the same
41831079473.5

push

github

web-flow
test(realtime): bind mock servers to ephemeral ports (#1966)

Fixes SDK-2792.

The realtime mock WebSocket servers bound hard-coded ports (55555,
55565, 55566). When another process held one of them, the fixtures
failed with `OSError: [Errno 48] address already in use`.

## Changes

- The mock servers in `test_reconnection.py`, `test_join_ref.py` and
`test_unknown_refs.py` bind port 0 on `127.0.0.1`, read back the
assigned port, and expose the client URL as `server.url`. A single
explicit loopback address avoids `localhost` resolving to IPv4 and IPv6
sockets with different ports.
- `RealtimeServer` in `test_reconnection.py` stores the assigned port,
so the two reconnection tests restart the server on the same port and
URL.
- `test_automatic_reconnection_fails_after_max_retries` holds a bound,
non-listening socket on an ephemeral port, so the connection is refused
without relying on a fixed port being free.

Test-only change. The Docker infra ports are out of scope.

## Testing

- `pytest tests/test_reconnection.py tests/test_join_ref.py
tests/test_unknown_refs.py`: 14 passed, also while 55555, 55565 and
55566 were held. On `main`, `test_reconnection.py` fails locally with
Errno 48 on 55555.
- `make realtime.tests`: pyrefly clean, 43 passed.
- `make ruff`: clean.

2055 of 2107 relevant lines covered (97.53%)

0.98 hits per line

Source Files on job run-ubuntu-latest-3.11-postgrest-lowest-direct - 41831079473.5
  • Tree
  • List 24
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41831079473
  • a6250ef7 on github
  • Prev Job for on main (#41830002190.24)
  • Next Job for on main (#41840082477.7)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc