logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 55cc1ba50eaea0df769604f0659aedf0d5969ecb
parent 2f5a1db56e33ec83826e0e48f6ab1f6601d39fc0
Author: Mark Felder <feld@feld.me>
Date:   Mon, 19 Aug 2024 08:39:03 -0400

Fix test cases for validating instance reachability based on results of publishing attempts

Now that we store the unreachable_since in the Oban job the value is no longer a %NaiveDateTime{} so the code was wrong

Diffstat:

Mtest/pleroma/web/activity_pub/publisher_test.exs4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/pleroma/web/activity_pub/publisher_test.exs b/test/pleroma/web/activity_pub/publisher_test.exs @@ -180,7 +180,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do Publisher.prepare_one(%{ inbox: inbox, activity_id: activity.id, - unreachable_since: NaiveDateTime.utc_now() + unreachable_since: NaiveDateTime.utc_now() |> NaiveDateTime.to_string() }) |> Publisher.publish_one() @@ -269,7 +269,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do Publisher.prepare_one(%{ inbox: inbox, activity_id: activity.id, - unreachable_since: NaiveDateTime.utc_now() + unreachable_since: NaiveDateTime.utc_now() |> NaiveDateTime.to_string() }) |> Publisher.publish_one() end) =~ "connrefused"