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

Use co-mocha for async tests #177

Merged
merged 1 commit into from Mar 13, 2018
Merged

Use co-mocha for async tests #177

merged 1 commit into from Mar 13, 2018

Conversation

kherock
Copy link
Collaborator

@kherock kherock commented Mar 9, 2018

This improves error handling within tests so that they shouldn't time out when an assertion fails from within a callback. Server instances created within tests are also closed in finally blocks to avoid making Mocha hanging at the end.

This also greatly improves the performance of bulk generation of objects by allowing 100 concurrent uploads at a time. The indefinite timeout on these long-running tests has been removed.

edit: wooo new record of only 3:28 for total test runtime on Travis!

Copy link
Collaborator

@n1ru4l n1ru4l left a comment

Choose a reason for hiding this comment

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

I am fine with this, please resolve the conflicts 😇

This improves error handling within tests so that they shouldn't time out when an assertion fails from within a callback. Server instances created within tests are also closed in finally blocks to avoid making Mocha hanging at the end.

This also greatly improves the performance of bulk generation of objects by allowing 100 concurrent uploads at a time. The indefinite timeout on these long-running tests has been removed.
@kherock
Copy link
Collaborator Author

kherock commented Mar 13, 2018

Cool, I'll merge now since it looks like we'll need to be adding some more tests pretty soon.

@kherock kherock merged commit 84187d2 into master Mar 13, 2018
@kherock kherock deleted the co-mocha branch March 13, 2018 20:29
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.

None yet

2 participants