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 documentation (DocTest) for Phoenix.PubSub #119

Merged

Conversation

stefanluptak
Copy link

Use Process.info(self(), :messages) instead of Process.info(self())[:messages].
The later one was returning an empty array for me every time.

Issue appeared with Phoenix PubSub 1.1.1, Elixir 1.7.4, Erlang/OTP 21 [erts-10.1.1]

Use `Process.info(self(), :messages)` instead of `Process.info(self())[:messages]`.
The later one was returning an empty array for me every time.
@michalmuskala
Copy link
Contributor

michalmuskala commented Nov 7, 2018

Ah, yes. That's caused by the change in OTP 21 where the :messages key is not returned by default from Process.info/1 due to potentially large size.

Thank you! ❤️

@michalmuskala michalmuskala merged commit 50c1da2 into phoenixframework:master Nov 7, 2018
@stefanluptak stefanluptak deleted the fix-doctest-for-pubsub branch November 7, 2018 19:37
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.

None yet

2 participants