logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: b54b19a0f4fa3c7220994f259e1a0d12757321ff
parent 28cff592b134c9a884d7e8dc147743686c523a89
Author: Mark Felder <feld@feld.me>
Date:   Tue, 22 Jul 2025 13:22:51 -0700

Fix test for mix task

Missing assert_receive which would cause the test to randomly fail

Diffstat:

Mtest/mix/tasks/pleroma/app_test.exs7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/mix/tasks/pleroma/app_test.exs b/test/mix/tasks/pleroma/app_test.exs @@ -42,9 +42,10 @@ defmodule Mix.Tasks.Pleroma.AppTest do test "with errors" do Mix.Tasks.Pleroma.App.run(["create"]) - {:mix_shell, :error, ["Creating failed:"]} - {:mix_shell, :error, ["name: can't be blank"]} - {:mix_shell, :error, ["redirect_uris: can't be blank"]} + + assert_receive {:mix_shell, :error, ["Creating failed:"]} + assert_receive {:mix_shell, :error, ["name: can't be blank"]} + assert_receive {:mix_shell, :error, ["redirect_uris: can't be blank"]} end defp assert_app(name, redirect, scopes) do