diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-04-30 15:07:21 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-06 13:25:50 +0300 |
commit | a16fb7c35c3b556c28b8e7ad708f6129b2aad161 (patch) | |
tree | d6f4bfdfc4bcbb311f8de8c6978a1f0cf0943019 /test/http | |
parent | 8e4bd2c1cf0e0570d1e3a1180d8b8a25f1425cc2 (diff) | |
download | pleroma-gun-memory-leak.tar.gz |
clean up and test coveragegun-memory-leak
Diffstat (limited to 'test/http')
-rw-r--r-- | test/http/gun_test.exs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/http/gun_test.exs b/test/http/gun_test.exs index c64cf7125..1a5a5b60c 100644 --- a/test/http/gun_test.exs +++ b/test/http/gun_test.exs @@ -9,6 +9,14 @@ defmodule Pleroma.HTTP.GunTest do alias Pleroma.HTTP.Gun describe "options/1" do + test "http" do + uri = URI.parse("http://example.com") + + opts = Gun.options([reuse_conn: false], uri) + + assert opts[:reuse_conn] == false + end + test "https url with default port" do uri = URI.parse("https://example.com") |