-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
Fail redis and mongo tests if incorrect URI provided + some storages tests refactoring #1510
Fail redis and mongo tests if incorrect URI provided + some storages tests refactoring #1510
Conversation
By default serverSelectionTimeoutMS=30000. This is too much
If incorrect URIs provided to "--redis" and/or "--mongo" options tests should fail with ERRORs instead of skipping. Otherwise the next scenario is possible: 1) developer breaks RedisStorage and/or MongoStorage code 2) tests are run with incorrect redis and/or mongo URIs provided by "--redis" and "--mongo" options. For example, wrong port specified. 3) tests pass because skipping doesn't fail tests run 4) developer or reviewer doesn't notice that redis and/or mongo tests were skipped 5) broken code gets in codebase
✔️ Changelog found.Thank you for adding a description of the changes |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-3.x #1510 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 436 436
Lines 11294 11294
=========================================
Hits 11294 11294
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but make 100% coverage, please
This reverts commit d88b7ec.
The default 30s timeout is too long
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
I will update the changelog message and category, this change does not affect the functionality of the framework, but improves the development process of the framework itself, so these changes should be marked as "misc" and not as "bugfixes".
Description
If incorrect URIs provided to "--redis" and/or "--mongo" options tests should fail with errors instead of skipping.
Otherwise the next scenario is possible:
Checklist: