-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Remove test delays #5579
Remove test delays #5579
Conversation
…promise rejection
Codecov Report
@@ Coverage Diff @@
## master #5579 +/- ##
==========================================
- Coverage 94.05% 94.04% -0.01%
==========================================
Files 129 129
Lines 9214 9219 +5
==========================================
+ Hits 8666 8670 +4
- Misses 548 549 +1
Continue to review full report at Codecov.
|
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.
boom! nice. no discernable improvement in test time.
spec/ParseLiveQueryServer.spec.js
Outdated
serverStartComplete: () => { | ||
expect(parseServer.liveQueryServer).not.toBeUndefined(); | ||
expect(parseServer.liveQueryServer.server).toBe(parseServer.server); | ||
parseServer.server.close(() => 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.
parseServer.server.close(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.
just changed
spec/ParseLiveQueryServer.spec.js
Outdated
expect(parseServer.liveQueryServer.server).not.toBe( | ||
parseServer.server | ||
); | ||
parseServer.liveQueryServer.server.close(() => { |
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.
hm. maybe...
parseServer.liveQueryServer.server.close(parse.server.close.bind(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.
just changed to parseServer.liveQueryServer.server.close(parseServer.server.close.bind(parseServer.server, done))
Ready to merge? |
Yes. I think it is. |
* Changing __indexBuildCompletionCallbackForTests callback to serverStartComplete * Improving serverStartComplete callback to avoid production unhandled promise rejection * Add test to check inexistence of unhandled promise rejection on server fail * Removing some hooks delays * Removing delay after reconfigureServer * Improving code style
According to the discussion on #5573 this PR removes some test delays.