From 9266b4f72e7aa9333e752c483fe2ef44e94e7e18 Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Sun, 22 Dec 2024 18:36:14 +0100 Subject: [PATCH 1/2] Update Elixir/Erlang versions in CI --- .github/workflows/main.yml | 4 ++-- test/mint/http2/frame_test.exs | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2719f1df..b29bcc31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,8 +14,8 @@ jobs: fail-fast: false matrix: include: - - erlang: "27.1" - elixir: "1.17" + - erlang: "27.2" + elixir: "1.18" lint: true coverage: true dialyzer: true diff --git a/test/mint/http2/frame_test.exs b/test/mint/http2/frame_test.exs index e9714706..ac1f1eb1 100644 --- a/test/mint/http2/frame_test.exs +++ b/test/mint/http2/frame_test.exs @@ -22,7 +22,11 @@ defmodule Mint.HTTP2.FrameTest do test "flag_set?/3" do assert flag_set?(0x08, :data, :padded) == true assert flag_set?(0x00, :data, :padded) == false - assert_raise FunctionClauseError, fn -> flag_set?(0x00, :data, :ack) end + + # Typing violation if done at compile time. + assert_raise FunctionClauseError, fn -> + Code.eval_quoted(quote do: Mint.HTTP2.Frame.flag_set?(0x00, :data, :ack)) + end end test "decode_next/1 with an incomplete frame" do From 1f1ddd485d3ae1e15754a896af6b1132bfcb4b98 Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Sun, 22 Dec 2024 22:05:21 +0100 Subject: [PATCH 2/2] Dialyzer --- .dialyzer_ignore.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dialyzer_ignore.exs b/.dialyzer_ignore.exs index b4647b42..8b73fae9 100644 --- a/.dialyzer_ignore.exs +++ b/.dialyzer_ignore.exs @@ -1,5 +1,5 @@ [ - {"lib/mint/tunnel_proxy.ex", :call_with_opaque, 49}, + {"lib/mint/tunnel_proxy.ex", "Type mismatch in call with opaque term in put_proxy_headers."}, {"lib/mint/http1.ex", :improper_list_constr}, ~r{test/support}, ~r{Function ExUnit.Assertion.* does not exist},