mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 05:48:42 +00:00
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
This commit is contained in:
parent
2f5a1db56e
commit
55cc1ba50e
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do
|
||||||
Publisher.prepare_one(%{
|
Publisher.prepare_one(%{
|
||||||
inbox: inbox,
|
inbox: inbox,
|
||||||
activity_id: activity.id,
|
activity_id: activity.id,
|
||||||
unreachable_since: NaiveDateTime.utc_now()
|
unreachable_since: NaiveDateTime.utc_now() |> NaiveDateTime.to_string()
|
||||||
})
|
})
|
||||||
|> Publisher.publish_one()
|
|> Publisher.publish_one()
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do
|
||||||
Publisher.prepare_one(%{
|
Publisher.prepare_one(%{
|
||||||
inbox: inbox,
|
inbox: inbox,
|
||||||
activity_id: activity.id,
|
activity_id: activity.id,
|
||||||
unreachable_since: NaiveDateTime.utc_now()
|
unreachable_since: NaiveDateTime.utc_now() |> NaiveDateTime.to_string()
|
||||||
})
|
})
|
||||||
|> Publisher.publish_one()
|
|> Publisher.publish_one()
|
||||||
end) =~ "connrefused"
|
end) =~ "connrefused"
|
||||||
|
|
Loading…
Reference in a new issue