From: Alexander Strizhakov Date: Sat, 7 Mar 2020 07:12:34 +0000 (+0300) Subject: using `stub` instead `expect` X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=14678a7708fb43e60f2f3b610f15d5090616d85c;p=akkoma using `stub` instead `expect` --- diff --git a/test/http/adapter_helper/gun_test.exs b/test/http/adapter_helper/gun_test.exs index b1b34858a..c65b89786 100644 --- a/test/http/adapter_helper/gun_test.exs +++ b/test/http/adapter_helper/gun_test.exs @@ -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