Kaynağa Gözat

using `stub` instead `expect`

debug-remote-ip
Alexander Strizhakov 4 yıl önce
ebeveyn
işleme
14678a7708
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 22896A53AEF1381
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      test/http/adapter_helper/gun_test.exs

+ 1
- 1
test/http/adapter_helper/gun_test.exs Dosyayı Görüntüle

@@ -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


Yükleniyor…
İptal
Kaydet