Tests: Don't run federated tests by default

This commit is contained in:
lain 2019-07-22 16:17:18 +02:00
parent 38d6c43d1a
commit cb9c94d712
2 changed files with 7 additions and 4 deletions

View File

@ -4,11 +4,15 @@
defmodule Pleroma.Integration.FederationTest do
use Pleroma.DataCase
@moduletag :federated
import Pleroma.Cluster
@federated1 :"federated1@127.0.0.1"
setup_all do
Pleroma.Cluster.spawn_default_cluster()
:ok
end
@federated1 :"federated1@127.0.0.1"
describe "federated cluster primitives" do
test "within/2 captures local bindings and executes block on remote node" do
captured_binding = :captured

View File

@ -2,8 +2,7 @@
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
Pleroma.Cluster.spawn_default_cluster()
ExUnit.start()
ExUnit.start(exclude: [:federated])
Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual)
Mox.defmock(Pleroma.ReverseProxy.ClientMock, for: Pleroma.ReverseProxy.Client)
{:ok, _} = Application.ensure_all_started(:ex_machina)