projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
retry and retry_timeout settings default change
[akkoma]
/
test
/
gun
/
gun_test.exs
diff --git
a/test/gun/gun_test.exs
b/test/gun/gun_test.exs
index 7f185617ce38766eeb25084b319b9a716594f735..9f3e0f93817924039af899198eb5c932d049f470 100644
(file)
--- 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)
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
end
defp receive_response(conn, ref, acc \\ "") do