summaryrefslogtreecommitdiff
path: root/test/web/websub/websub_controller_test.exs
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-07-09 15:35:28 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-07-09 15:35:28 +0000
commit95c085174dc523f2898f02120d7ff0b120930d91 (patch)
tree101ab8c43a0886b76a574478624058e2c0a29704 /test/web/websub/websub_controller_test.exs
parent376a55c97fcf178abec3091db830215642bf23c1 (diff)
parentabe2e8881f946aafc2012edd43373c22837387af (diff)
downloadpleroma-95c085174dc523f2898f02120d7ff0b120930d91.tar.gz
pleroma-95c085174dc523f2898f02120d7ff0b120930d91.zip
Merge branch 'test-speedup' into 'develop'
Testing: Don't federate in testing. See merge request pleroma/pleroma!1391
Diffstat (limited to 'test/web/websub/websub_controller_test.exs')
-rw-r--r--test/web/websub/websub_controller_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/web/websub/websub_controller_test.exs b/test/web/websub/websub_controller_test.exs
index f79745d58..aa7262beb 100644
--- a/test/web/websub/websub_controller_test.exs
+++ b/test/web/websub/websub_controller_test.exs
@@ -9,6 +9,16 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do
alias Pleroma.Web.Websub
alias Pleroma.Web.Websub.WebsubClientSubscription
+ setup_all do
+ config_path = [:instance, :federating]
+ initial_setting = Pleroma.Config.get(config_path)
+
+ Pleroma.Config.put(config_path, true)
+ on_exit(fn -> Pleroma.Config.put(config_path, initial_setting) end)
+
+ :ok
+ end
+
test "websub subscription request", %{conn: conn} do
user = insert(:user)