X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fgun%2Fgun_test.exs;h=9f3e0f93817924039af899198eb5c932d049f470;hb=8854770fc4e9079131a0897d5fb6c0ccccf98bc6;hp=7f185617ce38766eeb25084b319b9a716594f735;hpb=13918cb545d583decfb728300850b307c59e2031;p=akkoma diff --git a/test/gun/gun_test.exs b/test/gun/gun_test.exs index 7f185617c..9f3e0f938 100644 --- a/test/gun/gun_test.exs +++ b/test/gun/gun_test.exs @@ -19,6 +19,12 @@ defmodule Pleroma.GunTest do assert json = receive_response(conn, ref) assert %{"args" => %{"a" => "b", "c" => "d"}} = Jason.decode!(json) + + {:ok, pid} = Task.start(fn -> Process.sleep(50) end) + + :ok = :gun.set_owner(conn, pid) + + assert :gun.info(conn).owner == pid end defp receive_response(conn, ref, acc \\ "") do