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
fix broken tests #135
fix broken tests #135
Conversation
(because of phpunit-util changes)
I hope I catched all places. |
@prolic Apparently not. Still failing. |
(because of phpunit-util changes)
Okay, that should do it. Feel free to merge @enumag, the other pull requests just need to be rebased after that, so tests pass there as well. |
{ | ||
$this->connection->close(); | ||
|
||
yield new Success(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this necessary? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I think I understand now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because otherwise it's not a generator. tearDown (non-async) is called later, so the test would hang otherwise forever (unless you get to unreference watchers).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If unreferencing the connection works, then the method can be deleted here anyway, as we don't need to close the connection anymore.
Tests pass, yeah! Good night! |
Works like a charm. Thanks and good night! |
(because of phpunit-util changes)