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

Enhance ChannelTest docs #1304

Merged
merged 2 commits into from
Oct 18, 2015
Merged

Conversation

ephe-meral
Copy link
Contributor

Adds an example for testing async closes/errors of channels.


Process.monitor(socket.channel_pid)
send(socket.channel_pid, :some_message)
assert_receive {:DOWN, _, _, _, _}
Copy link
Member

Choose a reason for hiding this comment

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

let's include the :normal reason in the tuple match, otherwise it's perfect!

chrismccord added a commit that referenced this pull request Oct 18, 2015
@chrismccord chrismccord merged commit ca1ff37 into phoenixframework:master Oct 18, 2015
@chrismccord
Copy link
Member

<3 <3 <3

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

Successfully merging this pull request may close these issues.

2 participants