Fix test for mix task
Missing assert_receive which would cause the test to randomly fail
This commit is contained in:
parent
28cff592b1
commit
b54b19a0f4
1 changed files with 4 additions and 3 deletions
|
|
@ -42,9 +42,10 @@ defmodule Mix.Tasks.Pleroma.AppTest do
|
||||||
|
|
||||||
test "with errors" do
|
test "with errors" do
|
||||||
Mix.Tasks.Pleroma.App.run(["create"])
|
Mix.Tasks.Pleroma.App.run(["create"])
|
||||||
{:mix_shell, :error, ["Creating failed:"]}
|
|
||||||
{:mix_shell, :error, ["name: can't be blank"]}
|
assert_receive {:mix_shell, :error, ["Creating failed:"]}
|
||||||
{:mix_shell, :error, ["redirect_uris: can't be blank"]}
|
assert_receive {:mix_shell, :error, ["name: can't be blank"]}
|
||||||
|
assert_receive {:mix_shell, :error, ["redirect_uris: can't be blank"]}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp assert_app(name, redirect, scopes) do
|
defp assert_app(name, redirect, scopes) do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue