X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=inline;f=test%2Fupload_test.exs;h=0ca5ebcedf952cbb4d14dd38b6c17ae5bf7891da;hb=17c237ba808d4356bb1e202e459680563b79ef99;hp=95b16078bb0458de4c4692e79e33eb985d1b7fff;hpb=acd20914ec5a2cedfcd6a7405a22b6453d951164;p=akkoma
diff --git a/test/upload_test.exs b/test/upload_test.exs
index 95b16078b..0ca5ebced 100644
--- a/test/upload_test.exs
+++ b/test/upload_test.exs
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2018 Pleroma Authors
+# Copyright © 2017-2019 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.UploadTest do
@@ -250,12 +250,8 @@ defmodule Pleroma.UploadTest do
end
describe "Setting a custom base_url for uploaded media" do
- setup do
+ clear_config([Pleroma.Upload, :base_url]) do
Pleroma.Config.put([Pleroma.Upload, :base_url], "https://cache.pleroma.social")
-
- on_exit(fn ->
- Pleroma.Config.put([Pleroma.Upload, :base_url], nil)
- end)
end
test "returns a media url with configured base_url" do