forked from AkkomaGang/akkoma
using stub
instead expect
This commit is contained in:
parent
78282dc983
commit
14678a7708
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ defp gun_mock(_) do
|
||||||
|
|
||||||
defp gun_mock do
|
defp gun_mock do
|
||||||
Pleroma.GunMock
|
Pleroma.GunMock
|
||||||
|> expect(:open, fn _, _, _ -> Task.start_link(fn -> Process.sleep(1000) end) end)
|
|> stub(:open, fn _, _, _ -> Task.start_link(fn -> Process.sleep(1000) end) end)
|
||||||
|> expect(:await_up, fn _, _ -> {:ok, :http} end)
|
|> expect(:await_up, fn _, _ -> {:ok, :http} end)
|
||||||
|> expect(:set_owner, fn _, _ -> :ok end)
|
|> expect(:set_owner, fn _, _ -> :ok end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue