Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve test suite to be less fragile #144

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

Merged
merged 2 commits into from
Dec 31, 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 timer tests and avoids related warnings about "risky" tests by PHPUnit.

The old test suite works fine on Travis, but reports these "risky" tests. For some reason, the test suite failed on my local machine when using ext-event, despite using same PHP version, same PECL version and same composer packages as seen on Travis: https://gist.github.com/clue/8216c7494769d31dd0c6279a0a27ed7b

The updated test suite avoids blocking the loop and thus makes these tests less fragile.

Builds on top of #138 and #120

Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@jsor jsor merged commit f696392 into reactphp:master Dec 31, 2017
@clue clue deleted the fragile branch January 1, 2018 12:09
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