pytest-django icon indicating copy to clipboard operation
pytest-django copied to clipboard

OSError: [Errno 98] Address already in use on second test session run

Open krims0n32 opened this issue 1 year ago • 0 comments
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!

krims0n32 avatar Jan 09 '24 09:01 krims0n32