summaryrefslogtreecommitdiff
path: root/test/conversation_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-07-09 15:30:51 +0900
committerlain <lain@soykaf.club>2019-07-09 15:30:51 +0900
commitabe2e8881f946aafc2012edd43373c22837387af (patch)
tree647e81805ba66f92d0453405c486365d45a20619 /test/conversation_test.exs
parent3589b30ddc9d0c23ca6f00264cff05e53be1b270 (diff)
downloadpleroma-abe2e8881f946aafc2012edd43373c22837387af.tar.gz
pleroma-abe2e8881f946aafc2012edd43373c22837387af.zip
Testing: Don't federate in testing.
Diffstat (limited to 'test/conversation_test.exs')
-rw-r--r--test/conversation_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/conversation_test.exs b/test/conversation_test.exs
index 5903d10ff..aa193e0d4 100644
--- a/test/conversation_test.exs
+++ b/test/conversation_test.exs
@@ -11,6 +11,16 @@ defmodule Pleroma.ConversationTest do
import Pleroma.Factory
+ 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 "it goes through old direct conversations" do
user = insert(:user)
other_user = insert(:user)