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

Improve test suite to be less fragile #290

Merged
merged 2 commits into from
Dec 29, 2017
Merged

Conversation

clue
Copy link
Member

@clue clue commented Dec 28, 2017

This simple PR improves the test suite to use less fragile assumptions for the functional tests and also resets test doubles between test runs to ensure the test suite supports running with --repeat=100.

Also, the old test suite did report an error when using ext-event, both locally and when run on Travis. Note that this project currently only tests against the "default loop", so this wasn't reported here, but actually as part of reactphp/reactphp#396 (comment). Accordingly, it's worth considering running against multiple loop implementations, but I'll try to leave this discussion separated from this PR.

The updated test suite avoids assumptions about the loop tick behavior and the number of tests runs and thus makes these tests less fragile.

Refs reactphp/event-loop#144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants