schireson / pytest-mock-resources

Pytest Fixtures that let you actually test against external resource (Postgres, Mongo, Redshift...) dependent code.
https://pytest-mock-resources.readthedocs.io/en/latest/quickstart.html
MIT License
179 stars 19 forks source link

fix: Increase time to wait for mysql to spin up. #190

Closed DanCardin closed 1 year ago

DanCardin commented 1 year ago

Noticed in sqlalchemy-declarative-extensions tests, which necessarily spin up/down a lot of mysql instances, versus just sharing a single one.

The default of 0.5 semiregularly leads to test failures (primarily in CI) that go away if you increase either the retry number of the interval. Given that mysql's startup is noticeably longer than something like postgres/redis, the higher interval seemed more appropriate.

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 5017795851


Totals Coverage Status
Change from base Build 4874522392: 0.0%
Covered Lines: 1276
Relevant Lines: 1399

💛 - Coveralls