diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-07 10:12:34 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-07 10:12:34 +0300 |
commit | 14678a7708fb43e60f2f3b610f15d5090616d85c (patch) | |
tree | 15b2ecb1050fc8526c41359f5509945598d3f03d /test | |
parent | 78282dc9839dbd17c4649cd3936bb8f4c8283745 (diff) | |
download | pleroma-14678a7708fb43e60f2f3b610f15d5090616d85c.tar.gz |
using `stub` instead `expect`
Diffstat (limited to 'test')
-rw-r--r-- | test/http/adapter_helper/gun_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |