Skip to content

Commit

Permalink
Resolve warnings on raise
Browse files Browse the repository at this point in the history
  • Loading branch information
evnu committed Feb 19, 2020
1 parent c843798 commit d9f4b78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rustler_tests/test/env_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule RustlerTest.EnvTest do
receive do
# Collect the pids that the child processes send back.
{child_pid, {:hello, :world}} -> child_pid
_ -> raise :fail
_ -> raise "fail"
end
end

Expand Down
4 changes: 2 additions & 2 deletions rustler_tests/test/thread_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule RustlerTest.ThreadTest do
RustlerTest.threaded_sleep(200)

receive do
_ -> raise :timeout_expected
_ -> raise "timeout_expected"
after
100 ->
nil
Expand All @@ -23,7 +23,7 @@ defmodule RustlerTest.ThreadTest do
x -> assert x == 200
after
1000 ->
raise :message_expected
raise "message_expected"
end
end

Expand Down

0 comments on commit d9f4b78

Please sign in to comment.