2019-08-19 10:43:06 -04:00
|
|
|
# Pleroma: A lightweight social networking server
|
|
|
|
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2019-08-09 05:25:58 -04:00
|
|
|
defmodule Pleroma.ReverseProxy.Client.TeslaTest do
|
|
|
|
use Pleroma.ReverseProxyClientCase, client: Pleroma.ReverseProxy.Client.Tesla
|
|
|
|
|
|
|
|
defp check_ref(%{pid: pid, stream: stream} = ref) do
|
|
|
|
assert is_pid(pid)
|
|
|
|
assert is_reference(stream)
|
|
|
|
assert ref[:fin]
|
|
|
|
end
|
2019-08-20 03:51:56 -04:00
|
|
|
|
|
|
|
defp close(%{pid: pid}) do
|
|
|
|
Pleroma.ReverseProxy.Client.Tesla.close(pid)
|
|
|
|
end
|
2019-08-09 05:25:58 -04:00
|
|
|
end
|