-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Handle RabbitMQ disconnects #120
Conversation
The issue you referenced contains the following statement:
Have you considered making the queues non-durable instead? Doesn't that also solve the issue, without creating durable resources that will then have to be cleaned up by hand if you are just running a quick test? |
I just tried making queues non-durable and it worked as expected. |
@xarg Awesome. Thank you so much! |
Thanks for being responsive. I would like add some tests for this as well. I'm not familiar with Travis that much, but does it offer a RMQ server or something? |
The tests that I currently have on this repository are all unit tests, they do not have access to any real services, they mock the actual services to test that the code does the right thing. Travis does not provide anything to my knowledge, it would be a somewhat large effort to set up a system to run integration tests, at this point, and will likely incur in hosting costs for me, so I keep things limited to unit tests. If you would like to investigate mocking RabbitMQ to test this code, I would gladly accept that. |
Got it. Do you think this one is included in the free plan? https://docs.travis-ci.com/user/database-setup/#RabbitMQ If it's free, would you be open to integrations tests or still want to keep it simple with unittest mocking? |
Sure. I think there is quite a bit of work to set them up, but it would be good to have them, not only for RabbitMQ but for testing the package in general. Sounds like travis could provide enough infrastructure to get this done. You can create a new PR in which you edit the |
Alright, I'm gonna do it. |
Is this related to my issue with publisher disconnects? celery/kombu#857 |
Relates to #100
Features:
Unresolved issues:
PreconditionFailed: Exchange.declare: (406) PRECONDITION_FAILED - inequivalent arg 'durable' for exchange