diff options
author | Mark Felder <feld@feld.me> | 2024-08-19 08:39:03 -0400 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-08-19 11:12:25 -0400 |
commit | 55cc1ba50eaea0df769604f0659aedf0d5969ecb (patch) | |
tree | d0e2f7771b5cf22770ab291e22f7a7075da5caf8 /test | |
parent | 2f5a1db56e33ec83826e0e48f6ab1f6601d39fc0 (diff) | |
download | pleroma-55cc1ba50eaea0df769604f0659aedf0d5969ecb.tar.gz pleroma-55cc1ba50eaea0df769604f0659aedf0d5969ecb.zip |
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 (limited to 'test')
-rw-r--r-- | test/pleroma/web/activity_pub/publisher_test.exs | 4 |
1 files 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 index 3acbac396..99ed42877 100644 --- 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" |