Skip to content

Commit

Permalink
Remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed May 17, 2024
1 parent 08604bd commit bd498b6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/login_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,6 @@ defmodule LoginTest do
assert {:ok, %Postgrex.Result{}} = P.query(pid, "SELECT 123", [])
end

@tag :ssl
test "ssl with extra_ssl_opts in endpoints succeeds", context do
opts = [ssl: true, endpoints: [{"localhost", 5555, [ssl: [verify_peer: :none]]}]]
assert {:ok, pid} = P.start_link(opts ++ context[:options])
assert {:ok, %Postgrex.Result{}} = P.query(pid, "SELECT 123", [])
end

@tag :ssl
test "ssl with extra_ssl_opts in endpoints fails due to bad ssl_opt", context do
assert capture_log(fn ->
opts = [ssl: true, endpoints: [{"localhost", 5555, [ssl: [verify_peer: :foobar]]}]]
assert_start_and_killed(opts ++ context[:options])
end)
end

test "env var defaults", context do
assert {:ok, pid} = P.start_link(context[:options])
assert {:ok, %Postgrex.Result{}} = P.query(pid, "SELECT 123", [])
Expand Down

0 comments on commit bd498b6

Please sign in to comment.