Fix test for mix task

Missing assert_receive which would cause the test to randomly fail
This commit is contained in:
Mark Felder 2025-07-22 13:22:51 -07:00
commit b54b19a0f4

View file

@ -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