-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
test: make GraphQL server test more reliable #7758
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
Conversation
Thanks for opening this pull request!
|
Codecov Report
@@ Coverage Diff @@
## alpha #7758 +/- ##
=======================================
Coverage 93.95% 93.96%
=======================================
Files 183 183
Lines 13640 13640
=======================================
+ Hits 12816 12817 +1
+ Misses 824 823 -1
Continue to review full report at Codecov.
|
@cbaker6 Thanks for taking the time to split into individual PRs. I don't want to merge anything prematurely, so whenever a PR is ready please feel free to request a review from parse-community/server-review. |
Changed commit type to |
@mtrezza i don’t have privileges to request a review on this repo, but it’s ready for review. I can only request a review after someone has been assigned or started a review already. |
Yes, we should look into how we can make requesting reviews more accessible. That's an ongoing issue due to the inflexible GitHub permission concept. Maybe you can just mention @parse-community/server-review in a comment meanwhile. |
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.
Looks good!
🎉 This change has been released in version 5.0.0-alpha.15 |
🎉 This change has been released in version 5.0.0-beta.10 |
🎉 This change has been released in version 5.1.0 |
New Pull Request Checklist
Issue Description
This test randomly fails and has a comment attached to it mentioning the relevant issue.
Related issue: #7180
Approach
Instead of removing the test, adapt to functions current behavior to ensure it passes, but ensures the code it's testing always behaves the way it currently behaves. The modification will still detect if an added feature breaks.
I attempted to remove the random failure in the graph tests by changing:
parse-server/spec/ParseGraphQLServer.spec.js
Lines 2597 to 2607 in 191d80b
to:
The change doesn't check for order, but it seems from your comment that's something you want to fix in the future.
TODOs before merging