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

fix broken tests #135

Merged
merged 2 commits into from May 2, 2020
Merged

fix broken tests #135

merged 2 commits into from May 2, 2020

Conversation

prolic
Copy link
Member

@prolic prolic commented May 2, 2020

(because of phpunit-util changes)

(because of phpunit-util changes)
@prolic prolic added the bug Something isn't working label May 2, 2020
@prolic
Copy link
Member Author

prolic commented May 2, 2020

I hope I catched all places.

@enumag
Copy link
Member

enumag commented May 2, 2020

@prolic Apparently not. Still failing.

(because of phpunit-util changes)
@prolic
Copy link
Member Author

prolic commented May 2, 2020

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.
If it still ain't working, I'll have another look tomorrow

{
$this->connection->close();

yield new Success();
Copy link
Member

Choose a reason for hiding this comment

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

why is this necessary? 🤔

Copy link
Member

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.

Copy link
Member Author

@prolic prolic May 2, 2020

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).

Copy link
Member Author

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.

@prolic
Copy link
Member Author

prolic commented May 2, 2020

Tests pass, yeah! Good night!

@enumag
Copy link
Member

enumag commented May 2, 2020

Works like a charm. Thanks and good night!

@enumag enumag merged commit 85d2d75 into master May 2, 2020
@enumag enumag deleted the fix_broken_tests branch May 2, 2020 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants