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

test: check result as early as possible #2007

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Jun 18, 2015

Remove nested event listeners. Listen to pipe's finish event as it seems to be the earliest event to fire once results can be checked. Minor positive-ish effects:

  • Code is slightly easier to understand. (It wasn't that hard in the first place, though.)
  • In my non-scientific highly-questionable benchmarking on my laptop, the test seems to run approximately 10ms faster.
  • Allows us to remove a TODO comment in the tests

@rvagg
Copy link
Member

rvagg commented Jun 18, 2015

lgtm, but CI run please

@Trott
Copy link
Member Author

Trott commented Jun 18, 2015

@mscdex mscdex added http Issues or PRs related to the http subsystem. test Issues and PRs related to the tests. labels Jun 18, 2015
Trott added a commit that referenced this pull request Jun 20, 2015
PR-URL: #2007
Reviewed-By: Rod Vagg <rod@vagg.org>
@Trott
Copy link
Member Author

Trott commented Jun 20, 2015

Merged in 3ba4f71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants