Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
fail-fast: false
matrix:
include:
- erlang: "28.1"
elixir: "1.19"
- erlang: "29.0"
elixir: "1.20"
lint: true
coverage: true
dialyzer: true
# One version down.
- erlang: "27.2"
elixir: "1.18"
- erlang: "28.1"
elixir: "1.19"
# Oldest version.
- erlang: "24.3"
elixir: "1.12.3"
elixir: "1.15.8"

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Mint.MixProject do
[
app: :mint,
version: @version,
elixir: "~> 1.12",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
Expand Down
7 changes: 5 additions & 2 deletions test/mint/http1/integration_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,12 @@ defmodule Mint.HTTP1.IntegrationTest do
transport_opts: [log_alert: false, reuse_sessions: false]
)

# OTP 21.3 changes the format of SSL errors. Let's support both ways for now.
# OTP 21.3 changes the format of SSL errors. OTP 29 reports a hostname
# mismatch as a "bad certificate" alert instead of "handshake failure".
# Support all the variants.
assert reason == {:tls_alert, ~c"handshake failure"} or
match?({:tls_alert, {:handshake_failure, _}}, reason)
match?({:tls_alert, {:handshake_failure, _}}, reason) or
match?({:tls_alert, {:bad_certificate, _}}, reason)

assert {:ok, _conn} =
HTTP1.connect(:https, "wrong.host.badssl.com", 443,
Expand Down
7 changes: 5 additions & 2 deletions test/mint/integration_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ defmodule Mint.IntegrationTest do
transport_opts: [log_alert: false, reuse_sessions: false]
)

# OTP 21.3 changes the format of SSL errors. Let's support both ways for now.
# OTP 21.3 changes the format of SSL errors. OTP 29 reports a hostname
# mismatch as a "bad certificate" alert instead of "handshake failure".
# Support all the variants.
assert reason == {:tls_alert, ~c"handshake failure"} or
match?({:tls_alert, {:handshake_failure, _}}, reason)
match?({:tls_alert, {:handshake_failure, _}}, reason) or
match?({:tls_alert, {:bad_certificate, _}}, reason)

assert {:ok, _conn} =
HTTP.connect(
Expand Down
Loading