pytest-django
pytest-django copied to clipboard
OSError: [Errno 98] Address already in use on second test session run
trafficstars
I use the liveserver fixture with a fixed port because I need SSL and have nginx setup in front of it. The first test runs fine, but when running another pytest session before TIME_WAIT expires I get the address already in use error. I suspect either cleanup is not done properly when the liveserver quits or it's just a TCP/IP thing.
Is there a workaround for this? I really need the fixed port because otherwise proxying from nginx won't work.
Thanks!