Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.10x breaks when LiveServerTestCase if restarted too quickly #547

Open
MikeHibbert opened this issue Dec 14, 2016 · 1 comment
Open

Comments

@MikeHibbert
Copy link

Over in the Django code site, I've reported an issue, (https://code.djangoproject.com/ticket/27596) that causes an error that reports as:

socket.error: [Errno 98] Address already in use

It basically happens when you run harvest again after one run through of testing. running it again, like in the case of testing one scenario over and over, you will get this error and have to wait a while before being able to start it up again.

On closer examination, it appears that between 1.9.x and 1.10x there was a change in the LiveServerThread class in django.testcases.py that disables port reuse. (see https://code.djangoproject.com/ticket/27596#comment:7)

I've suggested that this is their issue but they have asked me to get you guys involved to see if there is something that lettuce should be doing to alleviate this problem?

Thanks for any support or suggestions you have

Mike

@MikeHibbert MikeHibbert changed the title Django 1.10x breaks when LiveServerTestCase is restarted too quickly Django 1.10x breaks when LiveServerTestCase if restarted too quickly Dec 14, 2016
@MikeHibbert
Copy link
Author

I've added some code to my for which is part of PR #528 this fixes the issue without any versions of Django needing to be changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant