summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/activity_pub_controller_test.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-01-28 15:25:06 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-01-28 15:25:06 +0300
commit1d2f41642cfec5710055bcf8409778bb362beecb (patch)
tree18ee9598a4dfcde0751c1f53e756e3e8a75331cc /test/web/activity_pub/activity_pub_controller_test.exs
parent9560abea102b8cd4927c9350bbd0a1a2f1800ea6 (diff)
downloadpleroma-1d2f41642cfec5710055bcf8409778bb362beecb.tar.gz
pleroma-1d2f41642cfec5710055bcf8409778bb362beecb.zip
[#534] Various tweaks. Tests for Instances and Instance.
Diffstat (limited to 'test/web/activity_pub/activity_pub_controller_test.exs')
-rw-r--r--test/web/activity_pub/activity_pub_controller_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs
index 1b704330f..eca5c134d 100644
--- a/test/web/activity_pub/activity_pub_controller_test.exs
+++ b/test/web/activity_pub/activity_pub_controller_test.exs
@@ -146,7 +146,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
test "it clears `unreachable` federation status of the sender", %{conn: conn} do
sender_url = "https://pleroma.soykaf.com"
- Instances.set_unreachable(sender_url, Instances.reachability_datetime_threshold())
+ Instances.set_consistently_unreachable(sender_url)
refute Instances.reachable?(sender_url)
data = File.read!("test/fixtures/mastodon-post-activity.json") |> Poison.decode!()
@@ -211,7 +211,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
test "it clears `unreachable` federation status of the sender", %{conn: conn} do
sender_host = "pleroma.soykaf.com"
- Instances.set_unreachable(sender_host, Instances.reachability_datetime_threshold())
+ Instances.set_consistently_unreachable(sender_host)
refute Instances.reachable?(sender_host)
user = insert(:user)