tests changes

This commit is contained in:
Alexander Strizhakov 2020-03-07 11:01:37 +03:00
commit 9f884a2639
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
4 changed files with 27 additions and 52 deletions

View file

@ -24,8 +24,8 @@ defmodule Pleroma.HTTP.AdapterHelper.GunTest do
defp gun_mock do
Pleroma.GunMock
|> stub(:open, fn _, _, _ -> Task.start_link(fn -> Process.sleep(1000) end) end)
|> expect(:await_up, fn _, _ -> {:ok, :http} end)
|> expect(:set_owner, fn _, _ -> :ok end)
|> stub(:await_up, fn _, _ -> {:ok, :http} end)
|> stub(:set_owner, fn _, _ -> :ok end)
end
describe "options/1" do