Fix example to actually check message order as desc suggests
[chore]
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user