using stub instead expect

このコミットが含まれているのは:
Alexander Strizhakov 2020-03-07 10:12:34 +03:00
コミット 14678a7708
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 022896A53AEF1381

ファイルの表示

@ -23,7 +23,7 @@ defmodule Pleroma.HTTP.AdapterHelper.GunTest do
defp gun_mock do
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(:set_owner, fn _, _ -> :ok end)
end