Skip to content
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

Merged
merged 7 commits into from
May 14, 2019
Merged

Conversation

davimacedo
Copy link
Member

According to the discussion on #5573 this PR removes some test delays.

@codecov
Copy link

codecov bot commented May 10, 2019

Codecov Report

Merging #5579 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/Options/index.js 100% <ø> (ø) ⬆️
src/ParseServer.js 97.88% <100%> (+0.8%) ⬆️
src/RestWrite.js 93.27% <0%> (-0.18%) ⬇️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 96.81% <0%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3bb1796...b40d040. Read the comment docs.

Copy link
Contributor

@acinader acinader left a 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.

serverStartComplete: () => {
expect(parseServer.liveQueryServer).not.toBeUndefined();
expect(parseServer.liveQueryServer.server).toBe(parseServer.server);
parseServer.server.close(() => done());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parseServer.server.close(done);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just changed

expect(parseServer.liveQueryServer.server).not.toBe(
parseServer.server
);
parseServer.liveQueryServer.server.close(() => {
Copy link
Contributor

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))

Copy link
Member Author

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))

@acinader
Copy link
Contributor

Ready to merge?

@davimacedo
Copy link
Member Author

Yes. I think it is.

@davimacedo davimacedo merged commit 893f1d3 into parse-community:master May 14, 2019
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* 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
@mtrezza mtrezza mentioned this pull request Mar 30, 2021
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants