From 125ba1dc3d9650bb34a4b405fb0d7ddf959e09e8 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 20 Aug 2019 21:32:21 +0000 Subject: [PATCH] tests: fix up tesla test --- test/reverse_proxy/client/tesla_test.exs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/reverse_proxy/client/tesla_test.exs b/test/reverse_proxy/client/tesla_test.exs index 8adefbe59..db58c805b 100644 --- a/test/reverse_proxy/client/tesla_test.exs +++ b/test/reverse_proxy/client/tesla_test.exs @@ -5,6 +5,13 @@ defmodule Pleroma.ReverseProxy.Client.TeslaTest do use Pleroma.ReverseProxyClientCase, client: Pleroma.ReverseProxy.Client.Tesla + setup_all do + Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun.API.Gun) + on_exit(fn -> + Pleroma.Config.put([Pleroma.Gun.API], Pleroma.Gun.API.Mock) + end) + end + defp check_ref(%{pid: pid, stream: stream} = ref) do assert is_pid(pid) assert is_reference(stream)