#3082 Only run redis once for all tests, preventing leakage of sockets
Merged by pingou. Opened by bkabrda.
bkabrda/pagure test-redis-flushing  into  master

Download 3082.patch

Thanks to this patch, we don't have to reload pagure.lib.tasks and pagure.lib.tasks_services before every test case, so we don't run into the issue where Celery leaks redis connection sockets on disconnecting.

FTR, I did run the whole test suite with this and saw no errors except the PEP-8 test failure (which cannot caused by this patch, since this patch only changes a file under tests/)

Looks fine to me, it's similar to what I had come up with :-)

rebased onto 3cb5290aef76a3844501aa561ae80fdafa6238da

Thanks for this :)

Pull-Request has been merged by pingou

Metadata