Merge pull request #273 from elixirkoans/iamvery/better-failure

Add helpful message when processes koan assertion fails
This commit is contained in:
Uku Taht
2022-05-02 09:55:50 +03:00
committed by GitHub

View File

@@ -77,7 +77,10 @@ defmodule Processes do
pid = spawn(greeter)
send(pid, {:hello, self()})
assert_receive ___
timeout = 100 # ms
failure_message = "Sorry, I didn't get the right message. Look at the message that is sent back very closely, and try again"
assert_receive ___, timeout, failure_message
end
def yelling_echo_loop do