X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Ffederation%2Ffederation_test.exs;h=10d71fb886ea720fcb90ec1077882ec1825bc8a4;hb=f7e623c11c4b6f4f323a4317e9489092be73f9cd;hp=7400d2abc2e46641b704970afe83bbd12b33eded;hpb=f01881e82a48b4177f943c73338d013010719040;p=akkoma
diff --git a/test/federation/federation_test.exs b/test/federation/federation_test.exs
index 7400d2abc..10d71fb88 100644
--- a/test/federation/federation_test.exs
+++ b/test/federation/federation_test.exs
@@ -1,14 +1,18 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2018 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
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
@@ -29,8 +33,8 @@ defmodule Pleroma.Integration.FederationTest do
within @federated1 do
import Pleroma.Web.Router.Helpers
user = Pleroma.Factory.insert(:user)
- user_url = mastodon_api_url(Pleroma.Web.Endpoint, :user, user)
- url_404 = mastodon_api_url(Pleroma.Web.Endpoint, :user, "not-exists")
+ user_url = account_url(Pleroma.Web.Endpoint, :show, user)
+ url_404 = account_url(Pleroma.Web.Endpoint, :show, "not-exists")
{user.nickname, user_url, url_404}
end