Fix example to actually check message order as desc suggests

[chore]
This commit is contained in:
Jay Hayes
2022-06-21 10:08:19 -05:00
parent f5e3f75448
commit f3c3bfb93a

View File

@@ -63,8 +63,18 @@ defmodule Processes do
send(self(), "hola!") send(self(), "hola!")
send(self(), "como se llama?") send(self(), "como se llama?")
assert_receive ___ first_message =
assert_receive ___ receive do
message -> message
end
second_message =
receive do
message -> message
end
assert first_message == ___
assert second_message == ___
end end
koan "A common pattern is to include the sender in the message, so that it can reply" do koan "A common pattern is to include the sender in the message, so that it can reply" do