Skip to content

Commit

Permalink
Update Elixir/Erlang versions in CI (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Dec 22, 2024
1 parent c16125a commit 0d15d72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .dialyzer_ignore.exs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion test/mint/http2/frame_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d15d72

Please sign in to comment.