Skip to content

Make Registry.send work when value part is present #11742

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 3 commits into from
Apr 5, 2022

Conversation

entertainyou
Copy link
Contributor

Fix #11740.

test "send works with value", %{registry: registry} do
name = {registry, "self", "value"}
Registry.register_name(name, self())
Registry.send(name, :message)
Copy link
Member

Choose a reason for hiding this comment

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

Instead of send, maybe the test can use GenServer.cast? The message will be wrapped but that’s fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, didn't bother to create a GenServer stub, still asserts we receive the expected message.

@josevalim josevalim merged commit eea4a9e into elixir-lang:main Apr 5, 2022
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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

Successfully merging this pull request may close these issues.

Inconsistent behavior when calling/casting a Registry-registered process with metadata in the via tuple
2 participants